diff options
author | LUXEY Adrien <adrien.luxey@inria.fr> | 2020-12-10 09:09:34 +0100 |
---|---|---|
committer | LUXEY Adrien <adrien.luxey@inria.fr> | 2020-12-10 09:09:34 +0100 |
commit | ad064dddbc1e226d23b62baa799871b675bbdfb6 (patch) | |
tree | 21510004236c9f8011b141cd39be4a10536e711b /app/deployment/email.hcl | |
parent | 2b3df5b6ee7f1dff25f2b96ece365b1555b5f609 (diff) | |
parent | 9c947a458f66e554c3d0cfda1fb1a42b4fafba25 (diff) | |
download | infrastructure-ad064dddbc1e226d23b62baa799871b675bbdfb6.tar.gz infrastructure-ad064dddbc1e226d23b62baa799871b675bbdfb6.zip |
Merge branch 'master' of git.deuxfleurs.fr:Deuxfleurs/infrastructure
Diffstat (limited to 'app/deployment/email.hcl')
-rw-r--r-- | app/deployment/email.hcl | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/app/deployment/email.hcl b/app/deployment/email.hcl index 898cfbc..9c88852 100644 --- a/app/deployment/email.hcl +++ b/app/deployment/email.hcl @@ -407,6 +407,57 @@ job "email" { } } + group "alps" { + count = 1 + task "main" { + + driver = "docker" + + config { + image = "superboum/amd64_alps:v1" + readonly_rootfs = true + port_map { + alps_web_port = 1323 + } + command = "-theme" + args = [ "alps", "imaps://imap.deuxfleurs.fr:993", "smtps://smtp.deuxfleurs.fr:465" ] + } + + resources { + cpu = 50 + memory = 40 + network { + mbits = 1 + port "alps_web_port" {} + } + } + + service { + name = "alps" + port = "alps_web_port" + address_mode = "host" + tags = [ + "alps", + "traefik.enable=true", + "traefik.frontend.entryPoints=https,http", + "traefik.frontend.rule=Host:alps.deuxfleurs.fr" + ] + check { + type = "tcp" + port = "alps_web_port" + interval = "60s" + timeout = "5s" + check_restart { + limit = 3 + grace = "5m" + ignore_warnings = false + } + } + } + } + } + + group "sogo" { count = 1 task "bundle" { |