mirror of
https://github.com/natelandau/ansible-homelab-config.git
synced 2025-11-18 09:53:41 -05:00
Initial commit
This commit is contained in:
41
templates/nomad_jobs/diun.hcl
Normal file
41
templates/nomad_jobs/diun.hcl
Normal file
@@ -0,0 +1,41 @@
|
||||
job "diun" {
|
||||
region = "global"
|
||||
datacenters = ["{{ datacenter_name }}"]
|
||||
type = "system"
|
||||
|
||||
group "diun" {
|
||||
|
||||
restart {
|
||||
attempts = 0
|
||||
delay = "30s"
|
||||
}
|
||||
|
||||
task "diun" {
|
||||
|
||||
env {
|
||||
// DIUN_PROVIDERS_DOCKER_ENDPOINT = "unix:///var/run/docker.sock"
|
||||
DIUN_NOTIF_PUSHOVER_RECIPIENT = "{{ pushover_recipient }}"
|
||||
DIUN_NOTIF_PUSHOVER_TOKEN = "{{ pushover_token }}"
|
||||
DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT = "true"
|
||||
DIUN_WATCH_FIRSTCHECKNOTIF = "false"
|
||||
DIUN_WATCH_SCHEDULE = "26 */48 * * *"
|
||||
TZ = "America/New_York"
|
||||
}
|
||||
|
||||
driver = "docker"
|
||||
config {
|
||||
image = "crazymax/diun:latest"
|
||||
hostname = "${NOMAD_JOB_NAME}"
|
||||
volumes = [
|
||||
"/var/run/docker.sock:/var/run/docker.sock"
|
||||
]
|
||||
} // docker config
|
||||
|
||||
// resources {
|
||||
// cpu = 100 # MHz
|
||||
// memory = 300 # MB
|
||||
// } // resources
|
||||
|
||||
} // task diun
|
||||
} // group
|
||||
} // job
|
||||
Reference in New Issue
Block a user