Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
In general, docker-type systems follow the reverse strategy - if something falls, then it is desirable to automatically raise it again, and all other containers should be ready for this.
However, you can probably make a third container, the only task of which will be to check the status of the first container and stop the second one if necessary.
The watchdog's function should lie on the application in a dependent container (fall when the dependency is unavailable), the containers themselves are isolated from each other.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question