From 3563fb5994944555c67aa8eb0246e1b747741047 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 26 Jan 2022 17:20:03 +0100 Subject: Change how email is stored --- app/email/deploy/email.hcl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'app/email') diff --git a/app/email/deploy/email.hcl b/app/email/deploy/email.hcl index a6b4a4c..96f9015 100644 --- a/app/email/deploy/email.hcl +++ b/app/email/deploy/email.hcl @@ -28,6 +28,12 @@ job "email" { task "server" { driver = "docker" + constraint { + attribute = "${attr.unique.hostname}" + operator = "=" + value = "digitale" + } + config { image = "superboum/amd64_dovecot:v6" readonly_rootfs = false @@ -38,7 +44,7 @@ job "email" { "secrets/ssl/certs:/etc/ssl/certs", "secrets/ssl/private:/etc/ssl/private", "secrets/conf/:/etc/dovecot/", - "/mnt/glusterfs/email/mail:/var/mail/", + "/mnt/ssd/mail:/var/mail/", ] } -- cgit v1.2.3