staging: also run Guichet from nix

This commit is contained in:
Alex 2022-12-01 23:30:12 +01:00
parent e67b460ae2
commit db8638223f
Signed by untrusted user: lx
GPG key ID: 0E496D15096376BE

View file

@ -86,23 +86,21 @@ EOH
count = 1 count = 1
network { network {
port "web_port" { to = 9991 } port "web_port" { static = 9991 }
} }
task "guichet" { task "guichet" {
driver = "docker" driver = "nix2"
config { config {
image = "superboum/guichet_amd64:15" packages = [
readonly_rootfs = true "git+https://git.deuxfleurs.fr/Deuxfleurs/guichet.git?ref=main&rev=085a7cfd26c553adfc3ca9d9dd3e043753b0d3ea"
ports = [ "web_port" ]
volumes = [
"secrets/config.json:/config.json"
] ]
command = "guichet"
} }
template { template {
data = file("../config/guichet/config.json.tpl") data = file("../config/guichet/config.json.tpl")
destination = "secrets/config.json" destination = "config.json"
} }
resources { resources {
@ -117,7 +115,6 @@ EOH
"tricot guichet.staging.deuxfleurs.org", "tricot guichet.staging.deuxfleurs.org",
] ]
port = "web_port" port = "web_port"
address_mode = "host"
check { check {
type = "tcp" type = "tcp"
port = "web_port" port = "web_port"