Skip to content

Instantly share code, notes, and snippets.

@shmick
Created November 11, 2019 18:49
Show Gist options
  • Save shmick/ebd8e99af4a10b4c3b4ce009975ab908 to your computer and use it in GitHub Desktop.
Save shmick/ebd8e99af4a10b4c3b4ce009975ab908 to your computer and use it in GitHub Desktop.
version: "3"
# https://github.com/pi-hole/docker-pi-hole/blob/master/README.md
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
- "53:53/tcp"
- "53:53/udp"
- "80:80/tcp"
- "443:443/tcp"
network_mode: host
environment:
TZ: 'America/Toronto'
WEBPASSWORD: '_____CHANGEME_____'
ServerIP: 192.168.1.71
DNS1: 127.0.0.1#5300
DNS2: 192.168.1.72#5300
# Volumes store your data between container upgrades
volumes:
- '$HOME/pihole/etc-pihole/:/etc/pihole/'
- '$HOME/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/'
# run `touch ./var-log/pihole.log` first unless you like errors
- '$HOME/pihole/var-log/pihole.log:/var/log/pihole.log'
dns:
- 127.0.0.1
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment