pihu

Pi-Hole Docker + Unbound local recursive DNS solution

General Instructions

  1. You have four options:
  • Copy docker-compose-env.yaml to docker-compose.yaml and copy env_example.txt to .env (and edit .env)
  • Copy docker-compose-portainer.yaml to docker-compose.yaml and edit the file with your changes
  • Copy docker-compose-syno.yaml to docker-compose.yaml and copy env_example.txt to .env (and edit .env)
  • Copy docker-compose-syno-host.yaml to docker-compose.yaml and copy env_example.txt to .env (and edit .env)
  1. 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

  1. In Portainer, create a new stack called pihole-unbound
  2. Select git repo: https://git.dou.bet/iamdoubz/pihu
  3. Change docker-compose.yml to docker-compose-syno-host.yaml
  4. Create local copy of env_example.txt and edit it to match your environment
  5. In Portainer, under Environment variables, switch into "Advanced mode", and paste contents of your updated env_example.txt file
  6. I also opted to do Automatic updates every 168h (1 week)
  7. Save settings
  8. 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

S
Description
Pi-Hole Docker + Unbound local recursive DNS solution
Readme
64 KiB
Languages
Dockerfile 50.7%
Shell 49.3%