Docker Compose integrating Pi-Hole, ISC Bind9, and BIND ad blocker (forked from Trellmor)
usually, you do not need both RPZ and PiHole filtering, this deployment allows for migration strategies or other complex deployments.
The Pi-Hole container forwards to Bind9 container which performs recursions, authoritative, forwarding, rpz, etc.
Define your default password for Pi-Hole in file 'secret_webpw.txt'
The containers need to be started to populate the volumes with initial system configurations.
docker-compose pull
docker-compose up -d
Modify the local configurations tailored to your deployment, then run the script to copy those files into the volumes. This creates a temporary container to interact with the docker volumes.
cd local
./update-configs.sh
Restart the containers to force loading with your updated configurations.
docker-compose restart
An example crontab is provided to be installed on the docker host, it starts the adblock container which writes its updated zone file into the docker volume, then restarts the bind9 container.