mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2025-12-19 18:08:35 +00:00
Merge pull request #1746 from pi-hole/healthcheck
Honor configured DNS port for docker health check
This commit is contained in:
@@ -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
|
||||
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"]
|
||||
|
||||
Reference in New Issue
Block a user