version: "3" services: web1: image: nopush/podman-compose-test hostname: web1 command: ["dumb-init", "sleep", "infinity"] ports: - 8000:8000 - 8001 web2: image: nopush/podman-compose-test hostname: web2 command: ["dumb-init", "sleep", "infinity"] ports: - 8002:8002 - target: 8003 host_ip: 127.0.0.1 published: 8003 protocol: udp - target: 8004 host_ip: 127.0.0.1 published: 8004 protocol: tcp - target: 8005 published: 8005 - target: 8006 protocol: udp - target: 8007 host_ip: 127.0.0.1