# Exercise 5 — Container Networking

podman network create appnet

podman run -d --name backend --network appnet nginx:1.27
podman run -d --name frontend --network appnet -p 8080:80 nginx:1.27

podman network inspect appnet

# Container-to-container (DNS im appnet)
podman exec -ti frontend curl backend

# Host-to-container (Port-Mapping)
curl localhost:8080

# Cleanup
podman rm -f frontend backend
podman network rm appnet
