Replies: 1 comment
-
I'm not 100% if defining the network & addresses alone will resolve your restart issue but its worth quickly experimenting. A little more complex but in Docker Compose I've had success with these: Defining a network:
Then placing this under Gluetun:
For the Gluetun healthcheck:
I also use autoheal to restart unhealthy containers:
Then for the healthchecks for the containers dependent on Gluetuns control server responding
I've found this reliable (if a bit slow, timings definitely need optimization) for when Gluetun reports unhealthy. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question for everyone. Currently, when deploying gluetun it appears to have a dynamic network and IP. I have several dependant containers and all have healthchecks to restarts automatically should gluetun need to restart due to an unhealthy state. That seems to work okay. However, if I stop/restart gluetun manually then the dependent containers won't restart. Additionally I have to restart them each 2x. The first time I get an error and the second time they restart successfully. What I suspect is happening is Gluetun's IP address is changing and the dependent containers are still looking for the old IP address so that's why they fail (the first try). So, my solution was to possibly setup gluetun with a static network/IP address so that it never changes, thinking this won't break the network relationship between dependant containers. What are your thoughts on this and would this solve the restart problem?
Thanks in advance for your consideration.
Beta Was this translation helpful? Give feedback.
All reactions