Interview Prep/Docker/Docker Compose

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.

All Docker questions Roadmap: Docker & containers

More on Docker Compose