Files
docker-compose-cookbooks/pihole/docker-compose.yml
T
2025-05-07 13:25:05 -07:00

23 lines
630 B
YAML

services:
pihole:
image: pihole/pihole:latest
restart: unless-stopped
ports:
- "53:53/tcp" # DNS
- "53:53/udp" # DNS
- "80:80/tcp" # Web interface
environment:
TZ: "America/Vancouver" # Set your timezone
WEBPASSWORD: "your_secure_password"
DNS1: "1.1.1.1" # Upstream DNS (Cloudflare)
DNS2: "1.0.0.1"
VIRTUAL_HOST: "pihole.yourdomain.com" # Set your domain if applicable
ServerIP: "your_server_ip" # Set your server's IP address
volumes:
- './etc-pihole:/etc/pihole'
- './etc-dnsmasq:/etc/dnsmasq.d'
cap_add:
- NET_ADMIN