diff --git a/Dockerfile b/Dockerfile index 7378b14ed..0093f414c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,7 @@ VOLUME /cryptpad/tasks VOLUME /cryptpad/block VOLUME /cryptpad/blob VOLUME /cryptpad/blobstage +VOLUME /cryptpad/data # Copy cryptpad and tini from the build container COPY --from=build /sbin/tini /sbin/tini @@ -44,4 +45,4 @@ WORKDIR /cryptpad EXPOSE 3000 3001 # Run cryptpad on startup -CMD ["/sbin/tini", "--", "/cryptpad/container-start.sh"] \ No newline at end of file +CMD ["/sbin/tini", "--", "/cryptpad/container-start.sh"] diff --git a/docker-compose.yml b/docker-compose.yml index 8f5f2528d..73673f7dd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -31,3 +31,4 @@ services: - ./data/tasks:/cryptpad/tasks:rw - ./data/block:/cryptpad/block:rw - ./data/config:/cryptpad/cfg:rw + - ./data/data:/cryptpad/data:rw