depends_on Without a Condition
With depends_on: [db], the app still crashes at start-up because the database isn't ready yet. Why?
depends_on: [db]
Choose one answer
Compose starts services in alphabetical order and ignores depends_on for ordering.
depends_on
depends_on only works when both services use the same image.
It only waits for db to start, not to accept connections.
db
depends_on is ignored unless restart: always is set.
restart: always