docker
docker copied to clipboard
Nextcloud gets 502 Bad Gateway on watchtower update
Problem:
When using upstream in the nginx config, the ip for app is resolved once. So if the app container gets updated (e.g. through watchtower, the ip changes and the server php-handler is not reachable anymore.
Fix:
- Add docker dns as resovler
- replace upstream with variable (
set), to trigger the dns lookup
My solution: #2413
Source / Inspiration:
The issue is not related to this image but I left a comment in https://github.com/nextcloud/docker/pull/2413#issuecomment-2815487622
Closing via #2413