version: "3.9" services: pihole: image: pihole/pihole:latest container_name: pihole ports: - "53:53/tcp" - "53:53/udp" - "8090:80/tcp" # nötig für DHCP (Port 67/UDP) # erlaubt DHCP restart: unless-stopped environment: TZ: "Europe/Berlin" WEBPASSWORD: "Milchtaube05" PIHOLE_DNS_: "1.1.1.1;1.0.0.1" DNSMASQ_LISTENING: "all" FTLCONF_LOCAL_IPV4: "192.168.178.15" # IP des Hosts im LAN volumes: - ./etc-pihole:/etc/pihole - ./etc-dnsmasq.d:/etc/dnsmasq.d healthcheck: test: ["CMD-SHELL", "dig +short @127.0.0.1 pi.hole || exit 1"] interval: 1m timeout: 10s retries: 3