Replies: 1 comment 2 replies
-
The easiest way to solve this would be to add a labels:
com.centurylinklabs.watchtower.depends-on: nginx That would recreate the nginx container as well when there are updates on backend or frontend. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My NGINX/Docker based server throws a 502 error after watchtower pulls image changes. The running front/back end containers get updated and are ran (I can navigate manually to the ports they are run on to verify), but NGINX throws a 502 instead of serving the frontend.
I'm forced to restart docker-compose after the image pulls in order to fix this issue.
I have tried adding resolver 127.0.0.11 valid=10s; to my NGINX config file, but this did not solve the issue. I'm assuming the issue is some sort of NGINX cache, but I'm not sure.
Steps to reproduce
Setup Watchtower, NGINX and node container in docker-compose on server. Make image changes to DockerHub and see NGINX serve 502 error.
Expected behavior
I expect NGINX to server the updated containers.
Screenshots
No response
Environment
Ubuntu 18.04
Docker 20.10.18
Your logs
Additional context
nginx.conf
Beta Was this translation helpful? Give feedback.
All reactions