Change how email is stored

This commit is contained in:
Quentin 2022-01-26 17:20:03 +01:00
parent 7cede37e6d
commit 3563fb5994

View file

@ -28,6 +28,12 @@ job "email" {
task "server" { task "server" {
driver = "docker" driver = "docker"
constraint {
attribute = "${attr.unique.hostname}"
operator = "="
value = "digitale"
}
config { config {
image = "superboum/amd64_dovecot:v6" image = "superboum/amd64_dovecot:v6"
readonly_rootfs = false readonly_rootfs = false
@ -38,7 +44,7 @@ job "email" {
"secrets/ssl/certs:/etc/ssl/certs", "secrets/ssl/certs:/etc/ssl/certs",
"secrets/ssl/private:/etc/ssl/private", "secrets/ssl/private:/etc/ssl/private",
"secrets/conf/:/etc/dovecot/", "secrets/conf/:/etc/dovecot/",
"/mnt/glusterfs/email/mail:/var/mail/", "/mnt/ssd/mail:/var/mail/",
] ]
} }