🐳 🐙 Docker Compose Tip #77
1 named volume, multiple services, each scoped to its own sub-dir:
volumes:
- type: volume
source: app-data
target: /var/data
volume:
subpath: api
Same backup unit, clean isolation.
lours.me/posts/compose-tip-077-volume-subpath/
#Docker #Storage
Use volume.subpath to mount a sub-directory of a named volume into a container, instead of the whole volume root.