A docker-compose for Pi-hole and DNSCrypt ready to work on a Synology NAS server.
docker
docker-compose
Edit docker-compose.yml
in the following ways.
Uncomment WEBPASSWORD
and put in a password, by default it will be randomized.
WEBPASSWORD: 'password'
Uncomment TZ
and put in your timezone, default is UTC.
- On Linux you can use
timedatectl list-timezones
to find the correct timezone.
TZ: 'America/Chicago'
Edit etc-dnscrypt-proxy/dnscrypt-proxy.toml
to your preference.
-
Clone this repository in /volume1/docker/pihole-dnscrypt/ inside your NAS.
git clone https://github.com/pfurio/pihole-dnscrypt-docker
-
Create missing directories:
mkdir /volume1/docker/pihole-dnscrypt/etc-pihole/
mkdir /volume1/docker/pihole-dnscrypt/etc-dnsmasq.d/
-
Copy docker-compose.yml file as a new Portainer stack and deploy.
-
Change router DNS server to point to your NAS server.
-
To update all images used by this docker-compose.
sudo docker-compose pull
-
Restart the systemd service.
sudo systemctl restart pihole-dnscrypt-docker
List old/unused images.
sudo docker images -f dangling=true
Remove old/unused images.
sudo docker image prune