Podman Networking

Basics

Inter Container Networking

A Pod is a single host that contains services. It is like a tiny VM with one IP, a pod only has one of any port.

2 containers cannot both listen on 80 in one pod. This is clearly an issue, your options are to change the port used by one of the containers or run them in/not in the same pod.

When containers are in the same pod they can be addressed by localhost:PORT but when in different pods (or not in pods) they need to be added to the same network and you need the podman-plugins package installed to do pod/container name resolution.