Merge pull request #1746 from pi-hole/healthcheck

Honor configured DNS port for docker health check
This commit is contained in:
yubiuser
2025-02-24 19:52:22 +01:00
committed by GitHub

View File

@@ -112,6 +112,6 @@ RUN readelf -h /usr/bin/pihole-FTL || (echo "Error with local FTL binary" && ex
# Use the appropriate FTL Install stage based on the FTL_SOURCE build-arg # Use the appropriate FTL Install stage based on the FTL_SOURCE build-arg
FROM ${FTL_SOURCE}-ftl-install AS final FROM ${FTL_SOURCE}-ftl-install AS final
HEALTHCHECK CMD dig +short +norecurse +retry=0 @127.0.0.1 pi.hole || exit 1 HEALTHCHECK CMD dig -p $(pihole-FTL --config dns.port) +short +norecurse +retry=0 @127.0.0.1 pi.hole || exit 1
ENTRYPOINT ["start.sh"] ENTRYPOINT ["start.sh"]