aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-28 21:23:32 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-28 21:23:32 +0800
commit7299d424d90b1effb6db69e3476ddd5af72eeba4 (patch)
treeba5c8aeb7901ebfcfa92d7df48b76805cd15bc95
parentda82a9f2a39064ce8faac791de319097ae676546 (diff)
downloadcrupest-7299d424d90b1effb6db69e3476ddd5af72eeba4.tar.gz
crupest-7299d424d90b1effb6db69e3476ddd5af72eeba4.tar.bz2
crupest-7299d424d90b1effb6db69e3476ddd5af72eeba4.zip
feat(dms): move state dir out of data.
-rw-r--r--services/.gitignore1
-rw-r--r--services/config.template1
-rw-r--r--services/templates/docker-compose.yaml.template2
3 files changed, 3 insertions, 1 deletions
diff --git a/services/.gitignore b/services/.gitignore
index e324eac..ad43a1f 100644
--- a/services/.gitignore
+++ b/services/.gitignore
@@ -1 +1,2 @@
/generated
+/state
diff --git a/services/config.template b/services/config.template
index 9229dbb..7cf7162 100644
--- a/services/config.template
+++ b/services/config.template
@@ -1,6 +1,7 @@
CRUPEST_MAIL_SERVER_DOMAIN=mail.@@CRUPEST_DOMAIN@@
CRUPEST_ROOT_URL=https://@@CRUPEST_DOMAIN@@/
CRUPEST_DOCKER_DIR=@@CRUPEST_SERVICES_DIR@@/docker
+CRUPEST_SERVICES_STATE_DIR=@@CRUPEST_SERVICES_DIR@@/state
CRUPEST_DATA_SECRET_DIR=@@CRUPEST_DATA_DIR@@/secret
CRUPEST_DATA_CERTBOT_DIR=@@CRUPEST_DATA_DIR@@/certbot
CRUPEST_DATA_GIT_DIR=@@CRUPEST_DATA_DIR@@/git
diff --git a/services/templates/docker-compose.yaml.template b/services/templates/docker-compose.yaml.template
index 2757d28..183bb42 100644
--- a/services/templates/docker-compose.yaml.template
+++ b/services/templates/docker-compose.yaml.template
@@ -67,7 +67,7 @@ services:
- "4190:4190" # manage sieve protocol
volumes:
- ./@@CRUPEST_DATA_MAILSERVER_DIR@@/mail-data/:/var/mail/
- - ./@@CRUPEST_DATA_MAILSERVER_DIR@@/mail-state/:/var/mail-state/
+ - ./@@CRUPEST_SERVICES_STATE_DIR@@/mail-state/:/var/mail-state/
- ./@@CRUPEST_DATA_MAILSERVER_DIR@@/mail-logs/:/var/log/mail/
- ./@@CRUPEST_DATA_MAILSERVER_DIR@@/config/:/tmp/docker-mailserver/
- ./@@CRUPEST_DATA_CERTBOT_DIR@@/certs:/etc/letsencrypt