homelab/nomad-job/backup-consul.nomad

37 lines
632 B
Plaintext
Raw Permalink Normal View History

2023-11-01 18:30:39 +00:00
2023-11-25 17:57:32 +00:00
job "backup-consul" {
2023-11-01 18:30:39 +00:00
datacenters = ["homelab"]
priority = 50
type = "batch"
meta {
forcedeploy = "0"
}
constraint {
attribute = "${attr.cpu.arch}"
value = "amd64"
}
periodic {
crons = ["30 3 * * *"]
prohibit_overlap = true
}
2023-11-25 17:57:32 +00:00
group "backup-consul" {
2023-11-01 18:30:39 +00:00
network {
mode = "host"
}
task "consul-backup" {
driver = "docker"
config {
image = "ducampsv/docker-consul-backup:latest"
volumes = [
"/mnt/diskstation/git/backup/consul:/backup"
]
}
resources {
memory = 100
}
}
}
}