nixcfg/cluster/prod/app/guichet/deploy/directory.hcl

57 lines
1 KiB
HCL
Raw Normal View History

2022-08-24 19:06:48 +00:00
job "guichet" {
datacenters = [ "neptune" ]
type = "service"
priority = 90
group "guichet" {
count = 1
network {
port "web_port" { to = 9991 }
}
task "guichet" {
driver = "docker"
config {
image = "superboum/guichet_amd64:15"
readonly_rootfs = true
ports = [ "web_port" ]
volumes = [
"secrets/config.json:/config.json"
]
}
template {
data = file("../config/guichet/config.json.tpl")
destination = "secrets/config.json"
}
resources {
memory = 200
}
service {
name = "guichet"
tags = [
"guichet",
2022-08-25 02:46:42 +00:00
"tricot 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
}
}
}
}
}
}