Files
tink-demo/moneycapp-tink-demo.nomad
Henrik Jess Nielsen 4305c1bc13
Some checks failed
Build and Deploy / deploy (push) Failing after 5s
fix: inject secrets from Consul KV via Nomad template (not baked in image)
2026-05-23 00:58:44 +02:00

56 lines
1.2 KiB
HCL

job "tink-demo" {
datacenters = ["dc1"]
type = "service"
group "demo" {
count = 1
network {
port "http" { to = 8000 }
}
service {
name = "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/tink-demo:latest"
force_pull = true
ports = ["http"]
}
template {
data = <<EOH
TINK_CLIENT_ID="{{ key "tink-demo/TINK_CLIENT_ID" }}"
TINK_CLIENT_SECRET="{{ key "tink-demo/TINK_CLIENT_SECRET" }}"
TINK_REDIRECT_URI="https://tink-demo.i80.dk/callback"
APP_BASE_URL="https://tink-demo.i80.dk"
DEMO_MODE="false"
EOH
destination = "secrets/app.env"
env = true
}
resources {
cpu = 256
memory = 256
}
}
}
}