Files
tink-demo/moneycapp-tink-demo.nomad
Henrik Jess Nielsen 3d35135b9b
All checks were successful
Build and Deploy / deploy (push) Successful in 1m0s
fix: correct Traefik router name to tink-demo (was moneycapp-tink-demo)
2026-05-23 00:13:33 +02:00

44 lines
953 B
HCL

job "moneycapp-tink-demo" {
datacenters = ["dc1"]
type = "service"
group "demo" {
count = 1
network {
port "http" { to = 8000 }
}
service {
name = "moneycapp-tink-demo"
port = "http"
tags = ["traefik.enable=true",
"traefik.http.routers.tink-demo.rule=Host(`tink-demo.i80.dk`)",
"traefik.http.routers.tink-demo.tls=true",
"traefik.http.routers.tink-demo.tls.certresolver=le",
"traefik.http.services.tink-demo.loadbalancer.server.port=8000"]
check {
type = "http"
path = "/"
interval = "30s"
timeout = "5s"
}
}
task "app" {
driver = "docker"
config {
image = "registry.i80.dk/gitea/moneycapp-tink-demo:latest"
force_pull = true
ports = ["http"]
}
resources {
cpu = 256
memory = 256
}
}
}
}