44 lines
953 B
HCL
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
|
|
}
|
|
}
|
|
}
|
|
}
|