Add PiHole stack

This commit is contained in:
SweetId 2024-12-30 14:51:09 -05:00
parent 85697a23cd
commit 826d7f79ad
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,15 @@
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
restart: always
ports:
- "53:53/tcp"
- "53:53/udp"
- "8053:80/tcp"
env_file:
- stack.env
# Volumes store your data between container upgrades
volumes:
- ${PIHOLE_CONFIG_DIR}:/etc/pihole
- ${PIHOLE_DNS_FILE}:/etc/dnsmasq.d

4
PiHole/stack.env Normal file
View File

@ -0,0 +1,4 @@
PIHOLE_CONFIG_DIR=/home/portainer/pihole/config
PIHOLE_DNS_FILE=/home/portainer/pihole/dnsmasq.d
WEBPASSWORD=
TZ=America/Toronto