Skip to content

Instantly share code, notes, and snippets.

@shmick
Created November 11, 2019 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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