From cf5e2bff6e0b6f01e1c2a153cd78ec9647bfb2a3 Mon Sep 17 00:00:00 2001 From: wizzdom Date: Wed, 26 Feb 2025 10:53:55 +0100 Subject: [PATCH] add uptime kuma (#96) --- jobs/services/uptime-kuma.hcl | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 jobs/services/uptime-kuma.hcl diff --git a/jobs/services/uptime-kuma.hcl b/jobs/services/uptime-kuma.hcl new file mode 100644 index 0000000..5ce5e58 --- /dev/null +++ b/jobs/services/uptime-kuma.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" + ] + } + } + } +}