Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker-compose dependency on healthy containers #6164

Closed
falnyr opened this issue Sep 4, 2018 · 1 comment
Closed

Docker-compose dependency on healthy containers #6164

falnyr opened this issue Sep 4, 2018 · 1 comment

Comments

@falnyr
Copy link

falnyr commented Sep 4, 2018

Description of the issue

Back in docker-compose v2.1 there was a possibility to make a dependency based on a healthy service. In version 3 this option is missing as described here: https://stackoverflow.com/questions/52104625/docker-compose-check-if-mysql-connection-is-ready-version-3. Since Docker recognizes the difference between Healthy/Unhealthy service I am wondering why is this not supported any more.

Let's say I need to start a workload with multiple services connecting to the same database: making a dependency. With the approach as described in the stackoverflow post I would need to create custom entrypoints for every single service which seems crazy to me.

I am using docker-compose version 1.22.0, build f46880fe, Docker version 18.06.1-ce, build e68fc7a.

@shin-
Copy link

shin- commented Sep 5, 2018

See an earlier thread on the same subject: #4305

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants