depends_on
code on docker-compose.yaml but it only check the other container status, not their service. So it still not work.
So is there any way to start container form other container's service status??
depends_on
code on docker-compose.yaml but it only check the other container status, not their service. So it still not work.
So is there any way to start container form other container's service status??
Your problem is the way you developed your service (same problem my devs had when we started building microservices :P).
You need to control, in the app code, whether all the dependencies are up and running, and if that's not the case, exit the program so that the container can fail and restart again automatically.
If you don't do this, the container will keep running, but the dependency was not satisfied, so the outcome is that the service will not be running as expected.