From 7299d424d90b1effb6db69e3476ddd5af72eeba4 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 28 Feb 2025 21:23:32 +0800 Subject: feat(dms): move state dir out of data. --- services/.gitignore | 1 + services/config.template | 1 + services/templates/docker-compose.yaml.template | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3