summaryrefslogtreecommitdiff
path: root/docker-compose-main/pihole/docker-compose.yaml
diff options
context:
space:
mode:
authorpants <niklasjo2004@gmail.com>2026-09-21 14:17:45 -0700
committerpants <niklasjo2004@gmail.com>2026-09-21 14:17:45 -0700
commita33d49ac4d1ce554c72770927957a089b4023bf1 (patch)
tree17ea036b5a0e8b488dc236f0ce48a275ecd80ef8 /docker-compose-main/pihole/docker-compose.yaml
Diffstat (limited to 'docker-compose-main/pihole/docker-compose.yaml')
-rw-r--r--docker-compose-main/pihole/docker-compose.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/docker-compose-main/pihole/docker-compose.yaml b/docker-compose-main/pihole/docker-compose.yaml
new file mode 100644
index 0000000..ee11fc7
--- /dev/null
+++ b/docker-compose-main/pihole/docker-compose.yaml
@@ -0,0 +1,26 @@
+version: "3"
+
+# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
+services:
+ pihole:
+ container_name: pihole
+ image: pihole/pihole:latest
+ hostname: pihole
+ # For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
+ ports:
+ - "53:53/tcp"
+ - "53:53/udp"
+ - "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
+ - "80:80/tcp"
+ environment:
+ TZ: 'America/Chicago'
+ WEBPASSWORD: '946731'
+ # Volumes store your data between container upgrades
+ volumes:
+ - './etc-pihole:/etc/pihole'
+ - './etc-dnsmasq.d:/etc/dnsmasq.d'
+ # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
+ cap_add:
+ - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
+ restart: unless-stopped
+