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