This commit is contained in:
pixel
2025-11-05 14:55:46 +01:00
parent 0d75a50faf
commit 4417324b0e

View File

@@ -4,21 +4,16 @@ services:
pihole: pihole:
image: pihole/pihole:latest image: pihole/pihole:latest
container_name: pihole container_name: pihole
network_mode: "host" # nötig für DHCP (Port 67/UDP) ports:
cap_add: - "53:53/tcp"
- NET_ADMIN # erlaubt DHCP - "53:53/udp"
- "8090:80/tcp" # nötig für DHCP (Port 67/UDP) # erlaubt DHCP
restart: unless-stopped restart: unless-stopped
environment: environment:
TZ: "Europe/Berlin" TZ: "Europe/Berlin"
WEBPASSWORD: "Milchtaube05" WEBPASSWORD: "Milchtaube05"
PIHOLE_DNS_: "1.1.1.1;1.0.0.1" PIHOLE_DNS_: "1.1.1.1;1.0.0.1"
DNSMASQ_LISTENING: "all" DNSMASQ_LISTENING: "all"
# DHCP einschalten (Bereich an dein Netz anpassen)
DHCP_ACTIVE: "true"
DHCP_START: "192.168.1.100"
DHCP_END: "192.168.1.200"
DHCP_ROUTER: "192.168.1.1"
DHCP_LEASETIME: "24"
FTLCONF_LOCAL_IPV4: "192.168.178.15" # IP des Hosts im LAN FTLCONF_LOCAL_IPV4: "192.168.178.15" # IP des Hosts im LAN
volumes: volumes:
- ./etc-pihole:/etc/pihole - ./etc-pihole:/etc/pihole