The documentation for depends_on states:
There are several things to be aware of when using
depends_on:
depends_ondoes not wait fordbandredisto be “ready” before startingweb- only until they have been started. If you need to wait for a service to be ready, see Controlling startup order for more on this problem and strategies for solving it.The
depends_onoption is ignored when deploying a stack in swarm mode with a version 3 Compose file.
So, does this mean when I'm using swarm mode and version 3 compose file to deploy it will ignore all conditions under depends_on? For example:
version: "3"
services:
web:
build: .
ports:
- "80:8000"
depends_on:
- "db"
command: ["./wait-for-it.sh", "db:5432", "--", "python", "app.py"]
db:
image: postgres