Trouble using `podman pod` to create a development network

In the style of docker-compose, I’m trying to use podman pod to create a multi-container application. My application is a simple web API that uses a database and backend web server written in Elixir. I wrote a shell script to create a pod like so:

podman pod create --name ${POD_NAME} -p 3000:3000 -p 4000:4000
podman container run --name ${APP_CONTAINER_NAME} --pod ${POD_NAME} \  
       ${CONTAINER_RUNTIME_OPTS} -dt -w /app/homemgr_backend ${APP_IMAGE_NAME} mix phx.server
podman container run --name ${PG_CONTAINER_NAME} --pod ${POD_NAME} \  
       -v ${DIR}/docker/pgdata:/var/lib/postgresql/data -dt ${PG_IMAGE_NAME} 

When I run these commands by hand, everything works fine, but in the script it does not work, failing with:

WARN[0000] Failed to add conmon to cgroupfs sandbox cgroup: mkdir /sys/fs/cgroup/systemd/libpod_parent: permission denied 
DEBU[0000] Cleaning up container 1ef5c20cdccd62af9781e60979901aec28b3bf0cd123637423df7d0f77be0303 
DEBU[0000] unmounted container "1ef5c20cdccd62af9781e60979901aec28b3bf0cd123637423df7d0f77be0303" 
ERRO[0000] unable to start container "homemgr-app": error reading container (probably exited) json message: EOF 

I then tried it again, attempting to force it to use the systemd cgroup manager:

INFO[0000] Running conmon under slice /libpod_parent/2cfe245477983fd0d5a91a1c89020fddeedcf510d18a902e6171e745b6f6ce46 and unitName libpod-conmon-1ef5c20cdccd62af9781e60979901aec28b3bf0cd123637423df7d0f77be0303.scope 
WARN[0000] Failed to add conmon to systemd sandbox cgroup: read unix @->/run/systemd/private: read: connection reset by peer 
DEBU[0000] Received container pid: -1                   
DEBU[0000] Cleaning up container 1ef5c20cdccd62af9781e60979901aec28b3bf0cd123637423df7d0f77be0303 
DEBU[0000] unmounted container "1ef5c20cdccd62af9781e60979901aec28b3bf0cd123637423df7d0f77be0303" 
ERRO[0000] unable to start container "homemgr-app": container create failed: systemd cgroup flag passed, but systemd support for managing cgroups is not available
: internal libpod error 

Does anyone know what the case might be?

Hi I have managed to do something like that but using the host network in the pod. You can see the example here https://github.com/fedora-infra/fpdc/blob/master/Makefile