mirror of
https://github.com/MSWS/Homelab.git
synced 2025-12-05 23:00:24 -08:00
Add new files
This commit is contained in:
21
pihole/compose.yml
Normal file
21
pihole/compose.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
services:
|
||||
pihole:
|
||||
container_name: pihole
|
||||
image: pihole/pihole:latest
|
||||
restart: unless-stopped
|
||||
network_mode: "host"
|
||||
environment:
|
||||
TZ: "America/Los_Angeles" # Change this to your timezone
|
||||
WEBPASSWORD: ${WEB_PASSWORD} # Set the Pi-hole admin password
|
||||
DNSMASQ_LISTENING: "all"
|
||||
PIHOLE_DNS_: "1.1.1.1;1.0.0.1" # Upstream DNS (Cloudflare)
|
||||
VIRTUAL_HOST: "pi.hole"
|
||||
volumes:
|
||||
- etc-pihole:/etc/pihole
|
||||
- etc-dnsmasq:/etc/dnsmasq.d
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
|
||||
volumes:
|
||||
etc-pihole:
|
||||
etc-dnsmasq:
|
||||
Reference in New Issue
Block a user