Skip to content

ptr33/pihole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker pihole container with automatic restart

Docker pihole container with auto-restart.

This container uses the standard pihole container (pihole/pihole) and only modifies the health check function. If the container stops operating, it is automatically killed. If the docker option restart is set, it will be automatically restarted.

Original docker health check:

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

modified to

HEALTHCHECK --interval=60s CMD dig -p $(pihole-FTL --config dns.port) +short +norecurse +retry=1 @127.0.0.1 pi.hole || kill 1

Usage

Modify the image in docker compose as follows:

services:
  pihole:
    image: ghcr.io/ptr33/pihole
    ...

About

Docker pihole container with auto-restart

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors