Skip to content

Instantly share code, notes, and snippets.

@narate
Created May 24, 2020 07:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save narate/3dc9383ce2b8dc5631dad1c53a34af97 to your computer and use it in GitHub Desktop.
Save narate/3dc9383ce2b8dc5631dad1c53a34af97 to your computer and use it in GitHub Desktop.
Pi-Hole Docker Compose
version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"
- "443:443/tcp"
environment:
TZ: 'Asia/Bangkok'
WEBPASSWORD: 'i-love-kotchasan'
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment