job "pdns-auth" { datacenters = ["homelab"] priority = 100 meta { force = 3 } type = "service" constraint { attribute = "${attr.cpu.arch}" value = "amd64" } group "pdns-auth" { network { port "dns" { static=5300 } port "http" { static = 8081 } port "pdnsadmin"{ to = 80 } } vault { policies = ["pdns"] } task "pdns-auth" { driver = "docker" service { name = "pdns-auth" port = "dns" } config { image = "powerdns/pdns-auth-48: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 = <