mirror of
https://github.com/natelandau/ansible-homelab-config.git
synced 2025-11-18 01:43:40 -05:00
feat(jobs): move changedetection to linuxserver.io docker image
This commit is contained in:
@@ -3,11 +3,11 @@ job "changedetection" {
|
||||
datacenters = ["{{ datacenter_name }}"]
|
||||
type = "service"
|
||||
|
||||
// constraint {
|
||||
// attribute = "${node.unique.name}"
|
||||
// operator = "regexp"
|
||||
// value = "rpi(1|2|3)"
|
||||
// }
|
||||
constraint {
|
||||
attribute = "${attr.cpu.arch}"
|
||||
operator = "regexp"
|
||||
value = "64"
|
||||
}
|
||||
|
||||
update {
|
||||
max_parallel = 1
|
||||
@@ -38,6 +38,7 @@ job "changedetection" {
|
||||
task "changedetection" {
|
||||
|
||||
env {
|
||||
TZ = "America/New_York"
|
||||
PUID = "${meta.PUID}"
|
||||
PGID = "${meta.PGID}"
|
||||
BASE_URL = "https://changes.{{ homelab_domain_name }}"
|
||||
@@ -45,9 +46,11 @@ job "changedetection" {
|
||||
|
||||
driver = "docker"
|
||||
config {
|
||||
image = "dgtlmoon/changedetection.io:latest"
|
||||
image = "lscr.io/linuxserver/changedetection.io:latest"
|
||||
hostname = "${NOMAD_JOB_NAME}"
|
||||
volumes = [ "${meta.nfsStorageRoot}/pi-cluster/changedetection:/datastore" ]
|
||||
volumes = [
|
||||
"${meta.nfsStorageRoot}/pi-cluster/changedetection:/config",
|
||||
]
|
||||
ports = ["webUI"]
|
||||
} // docker config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user