2019-06-11 16:03:24 +02:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
web:
|
2024-03-08 13:45:22 +01:00
|
|
|
image: nopush/podman-compose-test
|
|
|
|
command: ["dumb-init", "/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8000"]
|
2019-06-11 16:03:24 +02:00
|
|
|
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:
|
2024-03-08 13:45:22 +01:00
|
|
|
image: nopush/podman-compose-test
|
|
|
|
command: ["dumb-init", "/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:
|
2024-03-08 13:45:22 +01:00
|
|
|
image: nopush/podman-compose-test
|
|
|
|
command: ["dumb-init", "/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8002"]
|
2019-06-11 16:03:24 +02:00
|
|
|
working_dir: /var/www/html
|
|
|
|
volumes:
|
|
|
|
- myvol2:/var/www/html:ro
|
|
|
|
web3:
|
2024-03-08 13:45:22 +01:00
|
|
|
image: nopush/podman-compose-test
|
|
|
|
command: ["dumb-init", "/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8003"]
|
2019-06-11 16:03:24 +02:00
|
|
|
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
|
|
|
|
|