diff --git a/jobs/monitoring/uptime-huma.hcl b/jobs/monitoring/uptime-huma.hcl new file mode 100644 index 0000000..5ce5e58 --- /dev/null +++ b/jobs/monitoring/uptime-huma.hcl @@ -0,0 +1,44 @@ +job "uptime-kuma" { + datacenters = ["aperture"] + type = "service" + + group "web" { + count = 1 + + network { + port "http" { + to = 3001 + } + } + + service { + port = "http" + + check { + type = "http" + path = "/" + interval = "10s" + timeout = "2s" + } + + tags = [ + "traefik.enable=true", + "traefik.http.routers.uptime-kuma.rule=Host(`status.redbrick.dcu.ie`)", + "traefik.http.routers.uptime-kuma.entrypoints=web,websecure", + "traefik.http.routers.uptime-kuma.tls.certresolver=lets-encrypt", + ] + } + + task "web" { + driver = "docker" + + config { + image = "louislam/uptime-kuma:1" + ports = ["http"] + volumes = [ + "/storage/nomad/uptime-kuma/data:/app/data" + ] + } + } + } +}