mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #4572] Unable to proxy requests using the container’s DNS name: 502 Bad Gateway #2920
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#2920
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gremo on GitHub (Jun 9, 2025).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4572
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
I'm spending hours and days trying to figure out what's wrong with this setup. Based on my understanding of Docker, when creating an internal network, containers should be able to communicate using DNS names. And in fact, they do — from inside Nginx Proxy Manager I can reach the other container. But the proxy host keeps giving me a bad gateway. Proxy works only when using the container's IP address.
Tested with different containers: homeassistant, portainer, filebrowser, healthchecks. All works fine with Ip address.
docker network create internal --internaldocker network connect internal nginx-proxy-managerinternalnetwork only (do not expose port, isolate it)filebrowser:80, that is using container DNSContainer filebrowser networking (relevant part):
Container nginx-proxy-manager networking (relevant part):
From inside the container
curl -v http://filebrowsershow the HTML page.Nginx Proxy Manager Version
v2.12.3
Expected behavior
Should proxy requests using container’s DNS name.
Operating System
RaspberryPi 4B running Raspberry os-lite
@gremo commented on GitHub (Jun 19, 2025):
Recreating everything from scratch solved the issue. Maybe something got corrupted — I’m not sure. For anyone facing the same problem: unfortunately, try deleting the data and reconfiguring your proxy hosts.