docker icon indicating copy to clipboard operation
docker copied to clipboard

Nextcloud gets 502 Bad Gateway on watchtower update

Open SebastianRzk opened this issue 8 months ago • 1 comments

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:

bug on the watchtower github

SebastianRzk avatar Mar 20 '25 21:03 SebastianRzk

The issue is not related to this image but I left a comment in https://github.com/nextcloud/docker/pull/2413#issuecomment-2815487622

J0WI avatar Apr 18 '25 14:04 J0WI

Closing via #2413

joshtrichards avatar Aug 27 '25 19:08 joshtrichards