Skip to content

Instantly share code, notes, and snippets.

@jhx0
Created May 27, 2023 08:03
Show Gist options
  • Save jhx0/42d3ca9bd1d541b87a5a95502da764c4 to your computer and use it in GitHub Desktop.
Save jhx0/42d3ca9bd1d541b87a5a95502da764c4 to your computer and use it in GitHub Desktop.
Example Pi-Hole setup
version: "3"
services:
pihole:
container_name: pi-hole-main
image: pihole/pihole:latest
hostname: pi-hole.example.com
ports:
- "127.0.0.1:5353:53/tcp"
- "127.0.0.1:5353:53/udp"
- "127.0.0.1:9004:80/tcp"
environment:
TZ: 'Europe/Berlin'
PIHOLE_DNS_: '8.8.8.8;1.1.1.1'
IPv6: 'false'
WEBPASSWORD: 'PASSWORD'
volumes:
- '/srv/pi-hole/etc-pihole:/etc/pihole'
- '/srv/pi-hole/etc-dnsmasq.d:/etc/dnsmasq.d'
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment