main
pihu
Pi-Hole Docker + Unbound local recursive DNS solution
General Instructions
- You have four options:
- Copy
docker-compose-env.yamltodocker-compose.yamland copyenv_example.txtto.env(and edit .env) - Copy
docker-compose-portainer.yamltodocker-compose.yamland edit the file with your changes - Copy
docker-compose-syno.yamltodocker-compose.yamland copyenv_example.txtto.env(and edit .env) - Copy
docker-compose-syno-host.yamltodocker-compose.yamland copyenv_example.txtto.env(and edit .env)
- Run
sudo docker-compose up -d
Synology
Using any other images, I could not get Pi-Hole and Unbound to work until I made my own repo. Using this method, you can see all individual client IPs, and use the same hostname as your Synology NAS does.
Prerequisites
- SSH Enabled
- Portainer tl;dr
sudo docker run -p 8000:8000 -p 9000:9000 --detach --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /volume1/docker/portainer:/data portainer/portainer-ce:latest
Instructions
- In Portainer, create a new stack called
pihole-unbound - Select git repo:
https://git.dou.bet/iamdoubz/pihu - Change
docker-compose.ymltodocker-compose-syno-host.yaml - Create local copy of
env_example.txtand edit it to match your environment - In Portainer, under Environment variables, switch into "Advanced mode", and paste contents of your updated
env_example.txtfile - I also opted to do Automatic updates every
168h(1 week) - Save settings
- Pull and redeploy OR Deploy
Purpose
- Run recursive DNS server for added control for Pi-Hole
- Learn how to use Portainer
- Get this running on my Synology ds1512+
Sources
Extra
Languages
Dockerfile
50.7%
Shell
49.3%