added pihole

This commit is contained in:
2025-05-07 13:25:05 -07:00
parent 62273e8ad2
commit 327227e96f
3 changed files with 29 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
# PiHole
[official website](https://pi-hole.net/)
+22
View File
@@ -0,0 +1,22 @@
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
+3
View File
@@ -0,0 +1,3 @@
VOL_PATH=./data
TZ="America/Vancouver"
COMPOSE_PROJECT_NAME=pihole