feat(service): add pi-hole template (#6020)

Co-authored-by: 🏔️ Peak <122374094+peaklabs-dev@users.noreply.github.com>
This commit is contained in:
Jonasand🏔️ Peak authored and GitHub committed 2025-08-04 15:48:54 +02:00
1 parent b165d506c9
commit 10823666b2
2 files changed
+31

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
# documentation: https://pi-hole.net/
# slogan: Network-wide Ad Blocking
# tags: ad-block,dns,sinkhole,ntp,dhcp
# logo: svgs/pihole.svg
# port: 80
services:
pihole:
image: pihole/pihole:latest
ports:
# DNS Ports
- "53:53/tcp"
- "53:53/udp"
# Uncomment the below if using Pi-hole as your DHCP Server
- "67:67/udp"
# Uncomment the line below if you are using Pi-hole as your NTP server
- "123:123/udp"
environment:
- SERVICE_FQDN_PIHOLE_80
- TZ=${TZ:-Europe/London}
- FTLCONF_webserver_api_password=${SERVICE_PASSWORD_PIHOLE}
- FTLCONF_dns_listeningMode=${FTLCONF_dns_listeningMode:-all}
volumes:
- pihole-data:/etc/pihole
cap_add:
# See https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
# Required if you are using Pi-hole as your DHCP server, else not needed
- NET_ADMIN
# Required if you are using Pi-hole as your NTP client to be able to set the host's system time
- SYS_TIME