Files
ci-cd/server2/docker-compose.yml
2025-11-05 16:48:20 +01:00

27 lines
734 B
YAML

version: "3.9"
services:
pihole:
image: pihole/pihole:latest
container_name: pihole
cap_add:
- NET_ADMIN
ports:
- "53:53/tcp"
- "53:53/udp"
- "80: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