fix: path issue

This commit is contained in:
vincent 2024-02-21 19:02:08 +01:00
parent c37083b5c9
commit e10830e028
3 changed files with 18 additions and 6 deletions

View File

@ -6,7 +6,11 @@ job "backup-consul" {
meta {
forcedeploy = "0"
}
constraint {
attribute = "${node.class}"
operator = "set_contains"
value = "cluster"
}
constraint {
attribute = "${attr.cpu.arch}"
value = "amd64"
@ -24,7 +28,7 @@ job "backup-consul" {
config {
image = "ducampsv/docker-consul-backup:latest"
volumes = [
"/mnt/diskstation/backup/consul:/backup"
"/mnt/diskstation/nomad/backup/consul:/backup"
]
}
resources {

View File

@ -6,7 +6,11 @@ job "backup-postgress" {
meta {
forcedeploy = "0"
}
constraint {
attribute = "${node.class}"
operator = "set_contains"
value = "cluster"
}
constraint {
attribute = "${attr.cpu.arch}"
value = "amd64"
@ -30,7 +34,7 @@ job "backup-postgress" {
config {
image = "ducampsv/docker-backup-postgres:latest"
volumes = [
"/mnt/diskstation/backup/postgres:/backup"
"/mnt/diskstation/nomad/backup/postgres:/backup"
]
}
template {

View File

@ -6,7 +6,11 @@ job "backup-vault" {
meta {
forcedeploy = "0"
}
constraint {
attribute = "${node.class}"
operator = "set_contains"
value = "cluster"
}
constraint {
attribute = "${attr.cpu.arch}"
value = "amd64"
@ -27,7 +31,7 @@ job "backup-vault" {
config {
image = "ducampsv/docker-vault-backup:latest"
volumes = [
"/mnt/diskstation/backup/vault:/backup"
"/mnt/diskstation/nomad/backup/vault:/backup"
]
}
template {