summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2024-06-15 17:06:31 -0400
committerMalfurious <m@lfurio.us>2024-06-15 17:41:53 -0400
commit57d0c93851d72789c2adda1ed1e8b671bcd3f884 (patch)
treeb1f25e6b9fe681144c82b361527965a535a535d6
parenta813f81f1e601ae0798ee4b7287a10d88011384e (diff)
downloadmailnode-57d0c93851d72789c2adda1ed1e8b671bcd3f884.tar.gz
mailnode-57d0c93851d72789c2adda1ed1e8b671bcd3f884.zip
mlmmj: Add maintenance service
Define a container to run mlmmj-maintd service. It runs daemonized so it will schedule its own tasks (its forground mode is one-shot execution). Signed-off-by: Malfurious <m@lfurio.us>
-rw-r--r--docker-compose.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 60b4b08..e4c8a42 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -46,6 +46,15 @@ services:
LETSENCRYPT_HOST: "YOUR-DOMAIN.example"
command: ["/usr/sbin/dovecot", "-F"]
+ mlmmj-maint:
+ image: "mailnode"
+ pull_policy: "never"
+
+ restart: "always"
+ volumes:
+ - "mlmmj:/var/spool/mlmmj"
+ command: ["bash", "-c", "/usr/bin/mlmmj-maintd -d /var/spool/mlmmj && sleep infinity"]
+
volumes:
certs:
external: true