job "pdns-auth" { datacenters = ["homelab"] priority = 100 meta { force = 2 } type = "service" constraint { attribute = "${attr.cpu.arch}" value = "amd64" } constraint { attribute = "${node.class}" operator = "set_contains" value = "cluster" } vault { policies = ["pdns"] } group "pdns-auth" { network { port "dns" { static = 5300 } port "http" { static = 8081 } } task "pdns-auth" { driver = "docker" service { name = "pdns-auth" port = "dns" } config { image = "docker.service.consul:5000/powerdns/pdns-auth-master:latest" network_mode = "host" privileged = true cap_add = ["net_bind_service"] volumes = [ "/mnt/diskstation/nomad/pdns-auth/var:/var/lib/powerdns/", "local/dnsupdate.conf:/etc/powerdns/pdns.d/dnsupdate.conf", "local/pdns.conf:/etc/powerdns/pdns.conf" ] } template { destination = "secrets/env" data = <