2020-04-18 21:41:06 +02:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
web1:
|
2024-03-08 13:45:22 +01:00
|
|
|
image: nopush/podman-compose-test
|
2021-11-21 00:23:29 +01:00
|
|
|
hostname: web1
|
2024-03-08 13:45:22 +01:00
|
|
|
command: ["dumb-init", "/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
2020-04-18 21:41:06 +02:00
|
|
|
working_dir: /var/www/html
|
|
|
|
ports:
|
2021-11-24 16:37:17 +01:00
|
|
|
- 8001:8001
|
2020-04-18 21:41:06 +02:00
|
|
|
volumes:
|
2021-11-24 16:37:17 +01:00
|
|
|
- ./test1.txt:/var/www/html/index.txt:ro,z
|
2020-04-18 21:41:06 +02:00
|
|
|
web2:
|
2024-03-08 13:45:22 +01:00
|
|
|
image: nopush/podman-compose-test
|
2021-11-21 00:23:29 +01:00
|
|
|
hostname: web2
|
2024-03-08 13:45:22 +01:00
|
|
|
command: ["dumb-init", "/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8002"]
|
2020-04-18 21:41:06 +02:00
|
|
|
working_dir: /var/www/html
|
|
|
|
ports:
|
2021-11-24 16:37:17 +01:00
|
|
|
- 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
|
2020-04-18 21:41:06 +02:00
|
|
|
volumes:
|
2021-11-24 16:37:17 +01:00
|
|
|
- ./test2.txt:/var/www/html/index.txt:ro,z
|
2021-10-09 23:43:01 +02:00
|
|
|
|