/pihole-dnscrypt-docker

A docker-compose for Pi-hole and DNSCrypt, daemonized with a systemd service file.

GNU General Public License v3.0GPL-3.0

logo

Pi-hole DNSCrypt Docker

A docker-compose for Pi-hole and DNSCrypt ready to work on a Synology NAS server.

Dependencies

docker
docker-compose

Uses the following Docker containers:

Table of Contents

Configuration

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.

Installation

  1. Clone this repository in /volume1/docker/pihole-dnscrypt/ inside your NAS.

    git clone https://github.com/pfurio/pihole-dnscrypt-docker
    
  2. Create missing directories:

  mkdir /volume1/docker/pihole-dnscrypt/etc-pihole/
  mkdir /volume1/docker/pihole-dnscrypt/etc-dnsmasq.d/
  1. Copy docker-compose.yml file as a new Portainer stack and deploy.

  2. Change router DNS server to point to your NAS server.

Updating images

  1. To update all images used by this docker-compose.

    sudo docker-compose pull
    
  2. 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