From a4fa883c629c6502ccbd0c6506b8e9e7e6c99c23 Mon Sep 17 00:00:00 2001 From: Zoey Date: Thu, 18 Apr 2024 23:13:18 +0200 Subject: [PATCH] Update dns.Dockerfile Signed-off-by: Zoey --- dns.Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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