Files
pihole/docker-compose.yaml
2026-04-03 12:45:12 +02:00

29 lines
590 B
YAML

services:
pihole:
image: pihole/pihole:latest
container_name: pihole
hostname: pihole
restart: unless-stopped
env_file:
- .env
ports:
- "${WG_IP}:53:53/tcp"
- "${WG_IP}:53:53/udp"
- "${WG_IP}:${PIHOLE_WEB_PORT}:80"
environment:
TZ: ${TZ}
WEBPASSWORD: ${WEBPASSWORD}
PIHOLE_DNS_: ${PIHOLE_DNS_}
DNSMASQ_LISTENING: all
FTLCONF_dns_listeningMode: all
volumes:
- pihole_data:/etc/pihole
- pihole_dnsmasq:/etc/dnsmasq.d
cap_add:
- NET_ADMIN
volumes:
pihole_data:
pihole_dnsmasq: