Skip to content

Instantly share code, notes, and snippets.

@haroldcris
Created December 14, 2020 00:32
Show Gist options
  • Select an option

  • Save haroldcris/10d8339ec4df989e79ffa61f87acf690 to your computer and use it in GitHub Desktop.

Select an option

Save haroldcris/10d8339ec4df989e79ffa61f87acf690 to your computer and use it in GitHub Desktop.
PI Hole
version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "7000:80/tcp"
- "443:443/tcp"
environment:
TZ: 'Asia/Manila' #this is the time zone
volumes:
- './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
dns:
- 127.0.0.1
- 1.1.1.1
cap_add:
- NET_ADMIN
restart: unless-stopped
@haroldcris
Copy link
Author

When 53 port is in used,

SOLUTION:
sudo systemctl stop systemd-resolved
sudo systemctl disable systemd-resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment