job "pdns-auth" { datacenters = ["homelab"] priority = 100 meta { force = 2 } 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" check { name = "service: dns tcp check" type = "tcp" interval = "10s" timeout = "2s" success_before_passing = "3" failures_before_critical = "3" } } config { image = "powerdns/pdns-auth-48:latest" network_mode = "host" 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 = <