From 69bfca52fa4060a50e42c04a060b4fb703a861a4 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 30 Dec 2019 12:11:44 -0500 Subject: [PATCH] nest volumes not exposed via HTTP in 'data' folder for easier migration --- Dockerfile | 3 --- config/config.example.js | 6 +++--- docker-compose.yml | 3 --- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index ae312e3f9..6cac1605c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,11 +28,8 @@ VOLUME /cryptpad/cfg VOLUME /cryptpad/datastore VOLUME /cryptpad/customize VOLUME /cryptpad/blobstage -VOLUME /cryptpad/pins -VOLUME /cryptpad/tasks VOLUME /cryptpad/block VOLUME /cryptpad/blob -VOLUME /cryptpad/blobstage VOLUME /cryptpad/data # Copy cryptpad and tini from the build container diff --git a/config/config.example.js b/config/config.example.js index c76fe9d37..9981c0626 100644 --- a/config/config.example.js +++ b/config/config.example.js @@ -299,12 +299,12 @@ module.exports = { * Pin requests are stored in a pin-store. The location of this store is * defined here. */ - pinPath: './pins', + pinPath: './data/pins', /* if you would like the list of scheduled tasks to be stored in a custom location, change the path below: */ - taskPath: './tasks', + taskPath: './data/tasks', /* if you would like users' authenticated blocks to be stored in a custom location, change the path below: @@ -319,7 +319,7 @@ module.exports = { /* CryptPad stores incomplete blobs in a 'staging' area until they are * fully uploaded. Set its location here. */ - blobStagingPath: './blobstage', + blobStagingPath: './data/blobstage', /* CryptPad supports logging events directly to the disk in a 'logs' directory * Set its location here, or set it to false (or nothing) if you'd rather not log diff --git a/docker-compose.yml b/docker-compose.yml index 73673f7dd..e0d977866 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,10 +25,7 @@ services: volumes: - ./data/files:/cryptpad/datastore:rw - ./data/customize:/cryptpad/customize:rw - - ./data/pins:/cryptpad/pins:rw - ./data/blob:/cryptpad/blob:rw - - ./data/blobstage:/cryptpad/blobstage:rw - - ./data/tasks:/cryptpad/tasks:rw - ./data/block:/cryptpad/block:rw - ./data/config:/cryptpad/cfg:rw - ./data/data:/cryptpad/data:rw