From 7f94a629891f6e8c14d066bc68cdef2475932999 Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Sun, 22 Oct 2023 16:52:40 -0400 Subject: [PATCH] fix(sabnzbd): increase memory/cpu and add cron docker plugin --- templates/nomad_jobs/sabnzbd.hcl | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/templates/nomad_jobs/sabnzbd.hcl b/templates/nomad_jobs/sabnzbd.hcl index 8086a77..fab6a84 100644 --- a/templates/nomad_jobs/sabnzbd.hcl +++ b/templates/nomad_jobs/sabnzbd.hcl @@ -40,10 +40,10 @@ job "sabnzbd" { task "sabnzbd" { env { - PUID = "${meta.PUID}" - PGID = "${meta.PGID}" - TZ = "America/New_York" - + PUID = "${meta.PUID}" + PGID = "${meta.PGID}" + TZ = "America/New_York" + DOCKER_MODS = "linuxserver/mods:universal-cron" } driver = "docker" @@ -55,7 +55,8 @@ job "sabnzbd" { "${meta.nfsStorageRoot}/media/downloads/nzb:/nzbd", "${meta.nfsStorageRoot}/media/downloads/temp:/incomplete-downloads", "${meta.nfsStorageRoot}/media/downloads/complete:/downloads", - "${meta.nfsStorageRoot}/nate:/nate" + "${meta.nfsStorageRoot}/nate:/nate", + "${meta.nfsStorageRoot}/pi-cluster/${NOMAD_TASK_NAME}/startup-scripts:/custom-cont-init.d" ] ports = ["http"] } // docker config @@ -86,10 +87,10 @@ job "sabnzbd" { } } // service - // resources { - // cpu = 100 # MHz - // memory = 300 # MB - // } // resources + resources { + cpu = 5000 # MHz + memory = 1000 # MB + } // resources } // task