'docker-compose up' fails before a container's dependency is healthy #11064
Unanswered
sergiohcis
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Comunity,
My problem is that I have some services and they have dependencies between them, like this:
'service2' depends on 'service1' and thing is that service1 is taking som time to be healthy, so after all the retries of healthcheck, it shows "unhealthy", but some time later it shows: "healthy"
Before I was using docker-compose v2.2.3, and it always watied until 'service1' was "healthy" then started "service2" without failing.
Now, I updated docker-compose to V2.22.0, and I am getting this error: "dependency failed to start: container service1 is unhealthy", then it stops and never starts 'service2'.
Is this the expected behaviour ? What can I do to force it to wait as it was doing before?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions