Skip to content

depends_on and healthchecks

Select an icon to see what it is.

Step 5 of 6

Plain depends_on only waits for started

web has a plain depends_on api. The default condition is service_started, so Compose only waits until api's container is running. It does not know whether the program inside is ready to answer.

POST /v1.45/containers/<id>/start

shop-web-1 starts once shop-api-1 is running
no readiness check involved