Today I Learned

2024/03/21

docker-compose

that depends_on: [ service ] waits for service to be started, not for service to be healthy.

On startup, Compose does not wait until a container is “ready”, only until it’s running.

The solution for detecting the ready state of a service is to use the condition attribute with one of the following options:

https://docs.docker.com/compose/startup-order/