mirror of
https://github.com/containers/podman-compose.git
synced 2024-12-12 09:41:16 +01:00
18472b53ac
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
36 lines
976 B
YAML
36 lines
976 B
YAML
version: "3"
|
|
services:
|
|
web1:
|
|
image: nopush/podman-compose-test
|
|
hostname: web1
|
|
command: ["dumb-init", "/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
|
working_dir: /var/www/html
|
|
ports:
|
|
- 8001:8001
|
|
volumes:
|
|
- ./test1.txt:/var/www/html/index.txt:ro,z
|
|
web2:
|
|
image: nopush/podman-compose-test
|
|
hostname: web2
|
|
command: ["dumb-init", "/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8002"]
|
|
working_dir: /var/www/html
|
|
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
|
|
volumes:
|
|
- ./test2.txt:/var/www/html/index.txt:ro,z
|
|
|