Files
nomad-nummer5/apps/homer/live.hcl
2024-10-29 10:36:00 +01:00

54 lines
906 B
HCL

job "homer" {
datacenters = ["nummer5"]
node_pool = "apps"
priority = 80
group "apps" {
count = 1
network {
port "http"{
to = 8080
}
}
service {
name = "homer"
port = "http"
tags = [
"traefik.enable=true",
"traefik.http.routers.homer.rule=Host(`homer.service.nr5`)",
]
}
volume "homer-assets" {
type = "csi"
read_only = false
source = "homer-assets"
access_mode = "single-node-writer"
attachment_mode = "file-system"
}
task "homer" {
driver = "podman"
config {
image = "docker.io/b4bz/homer:latest"
ports = ["http"]
}
volume_mount {
volume = "homer-assets"
destination = "/www/assets"
}
resources {
cpu = 10
memory = 32
}
}
}
}