depends_on and healthchecks
Select an icon to see what it is.
Step 4 of 6
service_healthy releases api
api has depends_on db with condition service_healthy. Compose waits until db is healthy, and only then sends the start call for api. Without a condition, it would start api as soon as db's container started.
POST /v1.45/containers/<id>/start
shop-api-1 starts after shop-db-1 is healthy