Reverse proxy with DNS understanding

I’ve typically run various services in their own VMs which I’ve started consolidating into containers and further into docker. I’m now at a point where I have a good number of services running on docker and I’m going to start forgetting the ports soon. I know there are reverse proxy images available like traefik or nginx but I’m wondering how these work from a DNS perspective.

Let’s say I run plex and unifi controller as docker containers. I previously had these set up as containers with dynamic IP addresses and they’d request an IP from my DHCP server (pfSense) which would work then register the host name with the IP. So I could do ‘ping’ and the hostname would resolve and things were fine from a DNS perspective.

How would this work with a reverse proxy? Would I have to set up a hostname in pfSense for each one and point them all to the (same) IP of docker? Such as plex at and Unifi at which would be the docker IP address. Then when all that is done, I’d have to work through the reverse proxy config to decide hostnames and forward to the right port?

Is my understanding correct?

submitted by /u/MzCWzL
[link] [comments]
Source: Reddit