podman-compose/tests/integration/nets_test1/docker-compose.yml

22 lines
560 B
YAML
Raw Normal View History

version: "3"
services:
web1:
image: busybox
hostname: web1
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
working_dir: /var/www/html
ports:
2021-11-24 16:37:17 +01:00
- 8001:8001
volumes:
2021-11-24 16:37:17 +01:00
- ./test1.txt:/var/www/html/index.txt:ro,z
web2:
image: busybox
2021-12-22 23:34:01 +01:00
hostname: web2
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
working_dir: /var/www/html
ports:
2021-11-24 16:37:17 +01:00
- 8002:8001
volumes:
2021-11-24 16:37:17 +01:00
- ./test2.txt:/var/www/html/index.txt:ro,z