diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-02-28 21:23:32 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-02-28 21:23:32 +0800 |
commit | 7299d424d90b1effb6db69e3476ddd5af72eeba4 (patch) | |
tree | ba5c8aeb7901ebfcfa92d7df48b76805cd15bc95 | |
parent | da82a9f2a39064ce8faac791de319097ae676546 (diff) | |
download | crupest-7299d424d90b1effb6db69e3476ddd5af72eeba4.tar.gz crupest-7299d424d90b1effb6db69e3476ddd5af72eeba4.tar.bz2 crupest-7299d424d90b1effb6db69e3476ddd5af72eeba4.zip |
feat(dms): move state dir out of data.
-rw-r--r-- | services/.gitignore | 1 | ||||
-rw-r--r-- | services/config.template | 1 | ||||
-rw-r--r-- | services/templates/docker-compose.yaml.template | 2 |
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 |