podman-compose/tests/short/docker-compose.yaml

41 lines
1.1 KiB
YAML
Raw Normal View History

2019-06-11 16:03:24 +02:00
version: "3"
services:
redis:
image: redis:alpine
command: ["redis-server", "--appendonly yes", "--notify-keyspace-events", "Ex"]
volumes:
2021-11-24 16:37:17 +01:00
- ./data/redis:/data:z
2019-06-11 16:03:24 +02:00
tmpfs: /run1
ports:
- "6379"
environment:
- SECRET_KEY=aabbcc
- ENV_IS_SET
web:
image: busybox
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8000"]
working_dir: /var/www/html
volumes:
- /var/www/html
tmpfs:
- /run
- /tmp
web1:
image: busybox
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
working_dir: /var/www/html
volumes:
2021-11-24 16:37:17 +01:00
- ./data/web:/var/www/html:ro,z
2019-06-11 16:03:24 +02:00
web2:
image: busybox
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8002"]
working_dir: /var/www/html
volumes:
2021-11-24 16:37:17 +01:00
- ~/Downloads/www:/var/www/html:ro,z
2019-06-11 16:03:24 +02:00
web3:
image: busybox
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8003"]
working_dir: /var/www/html
volumes:
2021-11-24 16:37:17 +01:00
- /var/www/html:/var/www/html:ro,z