homelab/nomad-job/consul-backup.nomad
vincent db8b2c3b1e
Some checks failed
continuous-integration/drone/push Build is failing
consul backup in nomad
2023-11-01 19:30:39 +01:00

37 lines
632 B
HCL

job "consul-backup" {
datacenters = ["homelab"]
priority = 50
type = "batch"
meta {
forcedeploy = "0"
}
constraint {
attribute = "${attr.cpu.arch}"
value = "amd64"
}
periodic {
crons = ["30 3 * * *"]
prohibit_overlap = true
}
group "consul-backup" {
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
}
}
}
}