From 360eff46c2a58be42300c90d3c57bb019688f114 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Wed, 7 Feb 2024 10:41:55 +0000 Subject: [PATCH 1/4] build: move data bind mount path to local directory --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index c237608f..d04c59cc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -46,7 +46,7 @@ services: - enketo volumes: - secrets:/etc/secrets - - /data/transfer:/data/transfer + - ${DATA_DIR:-${PWD}/data/transfer}:/data/transfer environment: - DOMAIN=${DOMAIN} - SYSADMIN_EMAIL=${SYSADMIN_EMAIL} From cff1a39b5d83290987d01bd64a9b67fade077dcc Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Wed, 7 Feb 2024 10:42:08 +0000 Subject: [PATCH 2/4] docs: update .env.example with optional DATA_DIR variable --- .env.template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.env.template b/.env.template index ca710a43..fb29e7aa 100644 --- a/.env.template +++ b/.env.template @@ -20,6 +20,9 @@ HTTPS_PORT=443 # DB_PASSWORD= # DB_NAME= +# Optional: configure data directory +# DATA_DIR= + # Optional: configure a custom mail server # EMAIL_FROM= # EMAIL_HOST= From f15bda15726f7d50131f97e59fc781ade4ce4277 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Wed, 7 Feb 2024 10:50:22 +0000 Subject: [PATCH 3/4] build: add local ./data/transfer/* to gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 6a1c9041..2a4346af 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ /files/mail/rsa.public /files/dkim/* + +/data/transfer/* From 033e2464ea8ba2d4355211ce67980c48c3fed9f6 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Wed, 7 Feb 2024 10:54:46 +0000 Subject: [PATCH 4/4] build: fix remove $PWD in favour of ./ relative notation --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index d04c59cc..2bbc6caf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -46,7 +46,7 @@ services: - enketo volumes: - secrets:/etc/secrets - - ${DATA_DIR:-${PWD}/data/transfer}:/data/transfer + - ${DATA_DIR:-./data/transfer}:/data/transfer environment: - DOMAIN=${DOMAIN} - SYSADMIN_EMAIL=${SYSADMIN_EMAIL}