java-tutorials/docker-modules/docker-compose/multiple-mounts/multiple_volumes.yaml

15 lines
298 B
YAML

services:
my_app:
image: web-app:latest
container_name: web-app
ports:
- "8080:8080"
volumes:
- first-volume-data:/container-path-1
- second-volume-data:/container-path-2:ro
volumes:
first-volume-data:
driver: local
second-volume-data:
driver: local