mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-30 03:43:28 +01:00
24 lines
583 B
YAML
24 lines
583 B
YAML
version: "3"
|
|
networks:
|
|
mystack:
|
|
services:
|
|
web1:
|
|
image: busybox
|
|
hostname: web1
|
|
command: ["/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: busybox
|
|
hostname: web2
|
|
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
|
working_dir: /var/www/html
|
|
ports:
|
|
- 8002:8001
|
|
volumes:
|
|
- ./test2.txt:/var/www/html/index.txt:ro,z
|
|
|