From a9f3f9a2bfd105b9437f1a862579bf32f66ddde2 Mon Sep 17 00:00:00 2001 From: Christof Schulze Date: Thu, 9 Dec 2021 09:44:30 +0100 Subject: [PATCH] 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. --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index c156505..ef3ace8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,3 +6,7 @@ services: 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"