Skip to content

Instantly share code, notes, and snippets.

@tartakynov
Last active February 1, 2023 01:38
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 tartakynov/7f72f2456a25442b4089a75b37462a1e to your computer and use it in GitHub Desktop.
Save tartakynov/7f72f2456a25442b4089a75b37462a1e to your computer and use it in GitHub Desktop.
PiHole docker compose
version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
environment:
- TZ=America/Toronto
volumes:
- /media/usb/pihole/pihole:/etc/pihole
- /media/usb/pihole/dnsmasq.d:/etc/dnsmasq.d
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
ports:
- "53:53/tcp"
- "53:53/udp"
- "7080:80/tcp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment