Skip to content

Commit

Permalink
Add Pi-Hole
Browse files Browse the repository at this point in the history
  • Loading branch information
kijart committed Oct 22, 2019
1 parent e563339 commit b5872f7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions pihole/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"
- "443:443/tcp"
environment:
TZ: "Europe/Madrid"
WEBPASSWORD: "foobaz"
volumes:
- "./etc-pihole/:/etc/pihole/"
- "./etc-dnsmasq.d/:/etc/dnsmasq.d/"
dns:
- 127.0.0.1
- 1.1.1.1
# Recommended but not required (DHCP needs NET_ADMIN)
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN
restart: unless-stopped

0 comments on commit b5872f7

Please sign in to comment.