forked from Deuxfleurs/infrastructure
Alps is now deployed
This commit is contained in:
parent
d1332a2d42
commit
e370380a3f
1 changed files with 51 additions and 0 deletions
|
@ -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" {
|
||||
|
|
Loading…
Reference in a new issue