Two Docker services are getting mixed up behind local DNS

The home server setup has Pi-hole on an old PC, one Proxmox VE node, an LXC inside Proxmox VE, and an Ubuntu VM running Docker. Inside that Docker VM, and Portainer run as containers. The needed local address records are already configured in Pi-hole.

The has proxy hosts set up with a for a . Access to Nginx and works, so the basic path is working. The problem is that opening the Portainer address, even with the correct port configured, sends the browser to the page instead.

The open question is whether Portainer should be installed somewhere else instead of inside the same Docker system it manages.

Key points

  • The setup uses Proxmox VE, an LXC, and an Ubuntu Docker VM.
  • and Portainer are both containers inside the same Docker VM.
  • Pi-hole is used for local DNS entries.
  • Nginx and can already be reached correctly.
  • The Portainer address opens instead of Portainer.
Read original