mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
added pihole
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
# PiHole
|
||||||
|
|
||||||
|
[official website](https://pi-hole.net/)
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
VOL_PATH=./data
|
||||||
|
TZ="America/Vancouver"
|
||||||
|
COMPOSE_PROJECT_NAME=pihole
|
||||||
Reference in New Issue
Block a user