Skip to content

Instantly share code, notes, and snippets.

@steveevers
Created March 26, 2021 05:22
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 steveevers/c85c303d9282d2efbc21760b4f4c1ed0 to your computer and use it in GitHub Desktop.
Save steveevers/c85c303d9282d2efbc21760b4f4c1ed0 to your computer and use it in GitHub Desktop.
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: '<replace this with your timezone>'
WEBPASSWORD: '<replace this with your pw>'
volumes:
- './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
- './var-log/pihole.log:/var/log/pihole.log'
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