sync
This commit is contained in:
50
qbitcheck.nomad
Normal file
50
qbitcheck.nomad
Normal file
@@ -0,0 +1,50 @@
|
||||
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/",
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user