nix-cluster/apps/core/d53.hcl
2026-01-09 16:45:28 +01:00

45 lines
892 B
HCL

job "d53" {
datacenters = ["mayel-house", "gribse-house", "zuma-house"]
type = "service"
priority = 90
group "D53" {
count = 1
task "d53" {
driver = "docker"
config {
image = "git.shenanigans.cc/zuma/d53:41e79af-dirty"
network_mode = "host"
readonly_rootfs = true
}
resources {
cpu = 100
memory = 100
}
restart {
interval = "3m"
attempts = 10
delay = "15s"
mode = "delay"
}
template {
data = <<EOH
D53_CONSUL_HOST=http://localhost:8500
D53_PROVIDERS=chokbar.bzh:porkbun
D53_PORKBUN_API_KEY={{ key "secrets/d53/porkbun_api_key" }}
D53_PORKBUN_SECRET_API_KEY={{ key "secrets/d53/porkbun_secret_api_key" }}
D53_ALLOWED_DOMAINS=chokbar.bzh
RUST_LOG=d53=debug
EOH
destination = "secrets/env"
env = true
}
}
}
}