Skip to content

Commit 6324ec7

Browse files
authored
Merge pull request #1746 from pi-hole/healthcheck
Honor configured DNS port for docker health check
2 parents 838a020 + d09eb02 commit 6324ec7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,6 @@ RUN readelf -h /usr/bin/pihole-FTL || (echo "Error with local FTL binary" && ex
112112
# Use the appropriate FTL Install stage based on the FTL_SOURCE build-arg
113113
FROM ${FTL_SOURCE}-ftl-install AS final
114114

115-
HEALTHCHECK CMD dig +short +norecurse +retry=0 @127.0.0.1 pi.hole || exit 1
115+
HEALTHCHECK CMD dig -p $(pihole-FTL --config dns.port) +short +norecurse +retry=0 @127.0.0.1 pi.hole || exit 1
116116

117117
ENTRYPOINT ["start.sh"]

0 commit comments

Comments
 (0)