You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only change I made is in session of the_web_server, change
depends_on:
- the_database
- another_service
to
depends_on:
- start_dependencies
So service the_web_server will only start when start_dependencies reports the other two services are health.
The text was updated successfully, but these errors were encountered:
ozbillwang
changed the title
Adjust the docker-compose file to use start_dependenies as readiness probes in Kubernetes
use "start_dependenies" as readiness probes as in Kubernetes
Aug 22, 2020
Thanks to share the idea on how to set the dependencies between services.
What I want to do with it is, use the service
start_dependencies
as readness probes as we used in Kubernetes.So the ideal docker-compose file could be:
The only change I made is in session of
the_web_server
, changeto
So service
the_web_server
will only start whenstart_dependencies
reports the other two services are health.The text was updated successfully, but these errors were encountered: