docker-compose: define volumes to allow persistency of whiteboards

When destroying a container, all the data that was written to the
overlay file system is lost. This documents which paths must be mounted
to allow persisting data in docker volumes across restarts and removed
containers.
This commit is contained in:
Christof Schulze 2021-12-09 09:44:30 +01:00
parent 172ca62dca
commit a9f3f9a2bf

View File

@ -6,3 +6,7 @@ services:
ports: ports:
- "8080:8080/tcp" - "8080:8080/tcp"
command: --config=./config.default.yml command: --config=./config.default.yml
volumes:
- ./data/uploads:/opt/app/public/uploads"
- ./data/config.yml:/opt/app/config.default.yml:ro
- ./data/savedBoards:/opt/app/savedBoards"