2022-08-24 19:06:48 +00:00
|
|
|
job "guichet" {
|
2024-11-30 00:52:51 +00:00
|
|
|
datacenters = ["corrin", "neptune", "scorpio"]
|
2022-08-24 19:06:48 +00:00
|
|
|
type = "service"
|
|
|
|
priority = 90
|
|
|
|
|
|
|
|
group "guichet" {
|
|
|
|
count = 1
|
|
|
|
|
|
|
|
network {
|
|
|
|
port "web_port" { to = 9991 }
|
|
|
|
}
|
|
|
|
|
|
|
|
task "guichet" {
|
|
|
|
driver = "docker"
|
|
|
|
config {
|
2024-06-24 11:52:18 +00:00
|
|
|
image = "dxflrs/guichet:0x4y7bj1qb8w8hckvpbzlgyxh63j66ij"
|
2024-06-23 20:29:14 +00:00
|
|
|
args = [ "server", "-config", "/etc/config.json" ]
|
2022-08-24 19:06:48 +00:00
|
|
|
readonly_rootfs = true
|
|
|
|
ports = [ "web_port" ]
|
|
|
|
volumes = [
|
2023-10-03 13:58:12 +00:00
|
|
|
"secrets/config.json:/etc/config.json"
|
2022-08-24 19:06:48 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
template {
|
|
|
|
data = file("../config/guichet/config.json.tpl")
|
|
|
|
destination = "secrets/config.json"
|
|
|
|
}
|
|
|
|
|
|
|
|
resources {
|
2024-11-11 17:00:18 +00:00
|
|
|
# limite de mémoire un peu élevée par précaution.
|
|
|
|
# avec 200M, j'ai observé guichet se faire OOM-killed au moment
|
|
|
|
# où un nouvel utilisateur clique sur un lien d'invitation
|
|
|
|
# fraichement généré.
|
|
|
|
memory = 300
|
2022-08-24 19:06:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
service {
|
|
|
|
name = "guichet"
|
|
|
|
tags = [
|
|
|
|
"guichet",
|
2022-08-25 02:46:42 +00:00
|
|
|
"tricot guichet.deuxfleurs.fr",
|
2023-01-04 08:35:40 +00:00
|
|
|
"d53-cname guichet.deuxfleurs.fr",
|
2022-08-24 19:06:48 +00:00
|
|
|
]
|
|
|
|
port = "web_port"
|
|
|
|
address_mode = "host"
|
|
|
|
check {
|
|
|
|
type = "tcp"
|
|
|
|
port = "web_port"
|
|
|
|
interval = "60s"
|
|
|
|
timeout = "5s"
|
|
|
|
check_restart {
|
|
|
|
limit = 3
|
|
|
|
grace = "90s"
|
|
|
|
ignore_warnings = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|