diff --git a/dns.Dockerfile b/dns.Dockerfile index 5d6ebd3..b4eb77f 100644 --- a/dns.Dockerfile +++ b/dns.Dockerfile @@ -9,4 +9,5 @@ ENV NO_AUTOUPDATE=true ENTRYPOINT ["tini", "--", "cloudflared", "--no-autoupdate", "--metrics", "localhost:9172", "proxy-dns", "--address", "0.0.0.0"] CMD ["--upstream", "https://dns.adguard-dns.com/dns-query"] HEALTHCHECK CMD ([ "$(dig example.org IN A +short @127.0.0.1 | grep '^[0-9.]\+$' | sort | head -n1)" = "$(dig example.org IN A +short +https +tls-ca=/etc/ssl/certs/ca-certificates.crt @1.1.1.1 | grep '^[0-9.]\+$' | sort | head -n1)" ] && curl -sI http://localhost:9172 -o /dev/null) || exit 1 - +EXPOSE 53/tcp +EXPOSE 53/udp