compose-viz/tests/ymls/volumes/docker-compose.yml
2022-05-27 20:26:44 +08:00

28 lines
530 B
YAML

version: "3.9"
services:
backend:
image: awesome/backend
volumes:
- "./data:/data"
- type: bind
source: /var/run/postgres/postgres.sock
target: /var/run/postgres/postgres.sock
common:
image: busybox
volumes:
- common-volume:/var/lib/backup/data:rw,z
cli:
extends:
service: common
volumes:
- cli-volume:/var/lib/backup/data:ro
tmp:
image: awesome/nginx
volumes:
- type: tmpfs
target: /app
volumes:
common-volume:
cli-volume: