Files
portainer-stacks/pihole/docker-compose.yml
T
2026-04-27 11:21:50 -04:00

25 lines
594 B
YAML

volumes:
pihole_data:
dnsmasq_data:
services:
pihole:
image: pihole/pihole:latest
container_name: pihole
restart: unless-stopped
environment:
- TZ=America/New_York
- WEBPASSWORD=xek7HTK_bhf_cpy_mnv
volumes:
- pihole_data:/etc/pihole
- dnsmasq_data:/etc/dnsmasq.d
ports:
- "5333:53/tcp" # Changed host port
- "5333:53/udp" # Changed host port
- "8080:80/tcp" # Web UI on 8080
dns:
- 127.0.0.1
- 1.1.1.1
cap_add:
- NET_ADMIN
network_mode: bridge # Explicitly use default bridge