What does `depends_on` guarantee?
IntermediateConceptDocker Compose
Answer
By default only start order, not readiness: the dependent container starts when the dependency container has been started. With condition: service_healthy it waits for a passing healthcheck, and service_completed_successfully waits for a one-shot job like a migration. Apps should still retry connections.
More on Docker Compose
What is Docker Compose and what problem does it solve?Beginner`docker-compose` vs `docker compose`?BeginnerShow a minimal Compose file with a web app and a database.BeginnerHow do containers in Compose reach each other?BeginnerHow does Compose choose the project name and why does it matter?IntermediateWhat is the difference between `ports` and `expose` in Compose?Beginner