diff options
Diffstat (limited to 'app/email/deploy/email.hcl')
-rw-r--r-- | app/email/deploy/email.hcl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/email/deploy/email.hcl b/app/email/deploy/email.hcl index c0a651a..84e66b8 100644 --- a/app/email/deploy/email.hcl +++ b/app/email/deploy/email.hcl @@ -29,7 +29,7 @@ job "email" { driver = "docker" config { - image = "superboum/amd64_dovecot:v5" + image = "superboum/amd64_dovecot:v6" readonly_rootfs = false ports = [ "zauthentication_port", "imaps_port", "imap_port", "lmtp_port" ] command = "dovecot" @@ -37,7 +37,7 @@ job "email" { volumes = [ "secrets/ssl/certs:/etc/ssl/certs", "secrets/ssl/private:/etc/ssl/private", - "secrets/conf/dovecot-ldap.conf:/etc/dovecot/dovecot-ldap.conf", + "secrets/conf/:/etc/dovecot/", "/mnt/glusterfs/email/mail:/var/mail/", ] } @@ -135,6 +135,11 @@ job "email" { destination = "secrets/conf/dovecot-ldap.conf" perms = "400" } + template { + data = file("../config/dovecot/dovecot.conf") + destination = "secrets/conf/dovecot.conf" + perms = "400" + } # ----- secrets ------ template { |