aboutsummaryrefslogtreecommitdiff
path: root/app/email
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-01-26 17:20:03 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-01-26 17:20:20 +0100
commit3563fb5994944555c67aa8eb0246e1b747741047 (patch)
treec22ba94029f2ab391e6dd2f83e50c659cb05f4cf /app/email
parent7cede37e6d1129b1fcd5e5928856b9a6b52bae4a (diff)
downloadinfrastructure-3563fb5994944555c67aa8eb0246e1b747741047.tar.gz
infrastructure-3563fb5994944555c67aa8eb0246e1b747741047.zip
Change how email is stored
Diffstat (limited to 'app/email')
-rw-r--r--app/email/deploy/email.hcl8
1 files changed, 7 insertions, 1 deletions
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/",
]
}