whiteboard/docker-compose.yml
Christof Schulze a9f3f9a2bf 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.
2021-12-09 09:44:33 +01:00

13 lines
328 B
YAML

version: "3.1"
services:
whiteboard:
image: rofl256/whiteboard
restart: always
ports:
- "8080:8080/tcp"
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"