Skip to content

Instantly share code, notes, and snippets.

@TheTinkerDad
Created May 16, 2020 12:18
Show Gist options
  • Save TheTinkerDad/ea59fefe84e85c587cce60de00857fe3 to your computer and use it in GitHub Desktop.
Save TheTinkerDad/ea59fefe84e85c587cce60de00857fe3 to your computer and use it in GitHub Desktop.
---------- Commands for disabling Systemd Resolved
sudo systemctl disable systemd-resolved
sudo systemctl stop systemd-resolved
sudo rm /etc/resolv.conf
---------- Host resolv.conf (create a new /etc/resolv.conf on your host)
nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4
---------- Container resolv.conf (save it into a file next to docker-compose.yaml)
nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4
---------- docker-compose.yaml
version: "3"
volumes:
pihole-data:
pihole-dnsmasq:
services:
pihole:
container_name: pihole
image: pihole/pihole:v5.0
ports:
- 53:53/udp
- 53:53/tcp
- 67:67/udp
- 443:443/tcp
- 8080:80
environment:
TZ: 'Europe/Budapest'
WEBPASSWORD: 'adm1n'
volumes:
- pihole-data:/etc/pihole/
- pihole-dnsmasq:/etc/dnsmasq.d/
- ./resolv.conf:/etc/resolv.conf
restart: unless-stopped
privileged: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment