There are 3 or 4 ways to do this.
Clustering the web server is the first thing. How would you do this without docker/podman/kubernetes?
Usually for web servers you do some kind of load balancing, proxy server, DNS, or a hardware device.
Container to container connectivity isn't needed for any of these.