Skip to content

Instantly share code, notes, and snippets.

@andybe
Last active March 6, 2021 18:48
Show Gist options
  • Save andybe/0c62eecfb52572573cbddf6894f6b657 to your computer and use it in GitHub Desktop.
Save andybe/0c62eecfb52572573cbddf6894f6b657 to your computer and use it in GitHub Desktop.
Pihole docker-compose
version: "3"
services:
pihole:
image: pihole/pihole
container_name: pihole
restart: unless-stopped
ports:
- 127.0.0.1:8082:80
- 127.0.0.1:53:53/tcp
- 127.0.0.1:53:53/udp
environment:
- TZ=Europe/Amsterdam
- WEBPASSWORD=password
- SERVERIP=127.0.0.1
volumes:
- ./pihole:/etc/pihole
- ./dnsmasq:/etc/dnsmasq.d
networks:
- pihole
networks:
pihole:
name: pihole
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment