rootless podman containers can create network
using slirp4netns
but there is no container to container communication
the workaround I used in podman-compose is that I share
a network between containers
and all containers talk via pod shared localhost (not
to be confused with host localhost)
I was able to run this complex stack having:
a django web interface
Postgres database
rabbitmq
memcached
tasks
all linked to gather and non-exported to host except
the django web interface
the trick is like this
podman pod create -p 8080:80 --name=mypod --share net
podman run --name=db --pod=mypod ...
podman run --name=web --pod=mypod --add-host
db:127.0.0.1 ...