diff --git a/nomad-job/pihole.nomad b/nomad-job/pihole.nomad index 61ca650..25d11bc 100644 --- a/nomad-job/pihole.nomad +++ b/nomad-job/pihole.nomad @@ -26,9 +26,9 @@ job "pihole" { "homer.name=Pi-hole", "homer.service=Application", "homer.type=PiHole", - "homer.logo=http://${NOMAD_ADDR_http}/admin/img/logo.svg", + "homer.logo=http://192.168.1.4:${NOMAD_PORT_http}/admin/img/logo.svg", "homer.target=_blank", - "homer.url=http://${NOMAD_ADDR_http}/admin", + "homer.url=http://192.168.1.4:${NOMAD_PORT_http}/admin", ] port = "http" @@ -39,21 +39,11 @@ job "pihole" { name = "dns" port = "dns" - check { - name = "service: dns tcp check" - type = "tcp" - interval = "10s" - timeout = "2s" - - success_before_passing = "3" - failures_before_critical = "3" - } - check { name = "service: dns dig check" type = "script" command = "/usr/bin/dig" - args = ["+short", "@127.0.0.1"] + args = ["+short", "@192.168.1.4"] interval = "10s" timeout = "2s" @@ -86,7 +76,7 @@ job "pihole" { template { data = <