Files
qbitcheck/qbitcheck.nomad
2025-11-21 14:04:24 -08:00

50 lines
919 B
HCL

job "qbitcheck" {
datacenters = ["dc1"]
type = "service"
group "qbitcheck" {
count = 1
network {
mode = "host"
}
task "qbitcheck" {
driver = "docker"
config {
image = "gitea.service.dc1.fbleagh.duckdns.org/sstent/qbitcheck:latest"
force_pull = true
}
resources {
cpu = 100 # 100 MHz
memory = 128 # 128 MB
}
restart {
attempts = 10
interval = "5m"
delay = "25s"
mode = "delay"
}
service {
name = "qbitcheck"
port = "http"
check {
type = "script"
command = "/bin/sh"
args = ["-c", "ps aux | grep python | grep main.py"]
interval = "30s"
timeout = "5s"
}
tags = [
"urlprefix-qbitcheck.service.dc1.consul/",
]
}
}
}
}