Pi-Hole ist ein Werbeblocker für das lokale Netzwerk. Pi-Hole agiert dabei als DNS Server und muss im Router als primärer DNS Server einegragen werden. Dadurch werden alle angeschlossen Clients direkt von Pi-Hole profitieren (inkl. Smart-TVs etc.)
services:
pihole:
container_name: pihole
hostname: pihole
image: pihole/pihole:2024.07.0
labels:
- wud.tag.include=^\d+\.\d+\.\d+$$
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
- "53:53/tcp"
- "53:53/udp"
# - "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
# - "80:80/tcp"
environment:
TZ: 'Europe/Berlin'
WEBPASSWORD: 'password'
# Volumes store your data between container upgrades
volumes:
- pihole_config:/etc/pihole
- pihole_dnsmasq:/etc/dnsmasq.d
cap_add:
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
restart: unless-stopped
volumes:
pihole_dnsmasq:
pihole_config: