I am trying to make sure that my app container does not run migrations / start until the db container is started and READY TO accept connections. So I decided to use the healthcheck and depends on option in docker compose file v2. In the app, I have the following app: ... depends_on: db: condition: service_healthy The db on the other hand has the following healthcheck db: ... healthcheck: test: TE