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

50 lines
1.2 KiB
YAML
Raw Normal View History

2019-06-11 16:03:24 +02:00
version: "3"
services:
web:
image: busybox
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8000"]
working_dir: /var/www/html
2022-03-08 08:47:16 +01:00
restart: always
2019-06-11 16:03:24 +02:00
volumes:
- /var/www/html
tmpfs:
- /run
- /tmp
web1:
image: busybox
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
2022-03-08 08:47:16 +01:00
restart: unless-stopped
2019-06-11 16:03:24 +02:00
working_dir: /var/www/html
volumes:
2021-11-24 16:37:17 +01:00
- myvol1:/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:
- myvol2:/var/www/html:ro
web3:
image: busybox
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8003"]
working_dir: /var/www/html
volumes:
- myvol2:/var/www/html
2021-10-14 01:11:45 +02:00
- data:/var/www/html_data
- data2:/var/www/html_data2
- data3:/var/www/html_data3
2019-06-11 16:03:24 +02:00
volumes:
2022-03-08 08:47:16 +01:00
myvol1:
2019-06-11 16:03:24 +02:00
myvol2:
labels:
mylabel: myval
data:
name: my-app-data
external: true
data2:
external:
name: actual-name-of-volume
2021-10-14 01:11:45 +02:00
data3:
name: my-app-data3