mirror of
https://github.com/natelandau/ansible-homelab-config.git
synced 2025-11-18 09:53:41 -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 }}"]
|
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user