| 1 | version: "3" |
| 2 | services: |
| 3 | web1: |
| 4 | image: nopush/podman-compose-test |
| 5 | hostname: web1 |
| 6 | command: ["dumb-init", "sleep", "infinity"] |
| 7 | ports: |
| 8 | - 8000:8000 |
| 9 | - 8001 |
| 10 | web2: |
| 11 | image: nopush/podman-compose-test |
| 12 | hostname: web2 |
| 13 | command: ["dumb-init", "sleep", "infinity"] |
| 14 | ports: |
| 15 | - 8002:8002 |
| 16 | - target: 8003 |
| 17 | host_ip: 127.0.0.1 |
| 18 | published: 8003 |
| 19 | protocol: udp |
| 20 | - target: 8004 |
| 21 | host_ip: 127.0.0.1 |
| 22 | published: 8004 |
| 23 | protocol: tcp |
| 24 | - target: 8005 |
| 25 | published: 8005 |
| 26 | - target: 8006 |
| 27 | protocol: udp |
| 28 | - target: 8007 |
| 29 | host_ip: 127.0.0.1 |
| 30 |