feat(jobs): move changedetection to linuxserver.io docker image

This commit is contained in:
Nathaniel Landau
2022-09-13 15:34:27 -04:00
parent 113634c313
commit c72cdfc6c9

View File

@@ -3,11 +3,11 @@ job "changedetection" {
datacenters = ["{{ datacenter_name }}"] datacenters = ["{{ datacenter_name }}"]
type = "service" type = "service"
// constraint { constraint {
// attribute = "${node.unique.name}" attribute = "${attr.cpu.arch}"
// operator = "regexp" operator = "regexp"
// value = "rpi(1|2|3)" value = "64"
// } }
update { update {
max_parallel = 1 max_parallel = 1
@@ -38,6 +38,7 @@ job "changedetection" {
task "changedetection" { task "changedetection" {
env { env {
TZ = "America/New_York"
PUID = "${meta.PUID}" PUID = "${meta.PUID}"
PGID = "${meta.PGID}" PGID = "${meta.PGID}"
BASE_URL = "https://changes.{{ homelab_domain_name }}" BASE_URL = "https://changes.{{ homelab_domain_name }}"
@@ -45,9 +46,11 @@ job "changedetection" {
driver = "docker" driver = "docker"
config { config {
image = "dgtlmoon/changedetection.io:latest" image = "lscr.io/linuxserver/changedetection.io:latest"
hostname = "${NOMAD_JOB_NAME}" hostname = "${NOMAD_JOB_NAME}"
volumes = [ "${meta.nfsStorageRoot}/pi-cluster/changedetection:/datastore" ] volumes = [
"${meta.nfsStorageRoot}/pi-cluster/changedetection:/config",
]
ports = ["webUI"] ports = ["webUI"]
} // docker config } // docker config