feat(docker-stack): add pihole stack

This commit is contained in:
2025-08-31 22:35:18 +03:00
parent 3219683bc6
commit bf08114b72
3 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
services:
server:
image: pihole/pihole:2025.08.0
restart: unless-stopped
environment:
TZ: ${TZ}
FTLCONF_webserver_api_password: '${PIHOLE_WEBPASSWORD}'
FTLCONF_dns_listeningMode: all
FTLCONF_dns_upstreams: dnscrypt-proxy#5353
labels:
- com.centurylinklabs.watchtower.enable=false
volumes:
- ${SERVICE_DATA_ROOT_PATH}/config:/etc/pihole
ports:
- "${PIHOLE_DNS_PORT}:53/tcp"
- "${PIHOLE_DNS_PORT}:53/udp"
- "${PIHOLE_HTTP_PORT}:80/tcp"
cap_add:
- SYS_NICE
depends_on:
- dnscrypt-proxy
networks:
- pihole
dnscrypt-proxy:
image: klutchell/dnscrypt-proxy:latest
restart: unless-stopped
environment:
TZ: ${TZ}
volumes:
- ${SERVICE_DATA_ROOT_PATH}/dnscrypt/dnscrypt-proxy.toml:/config/dnscrypt-proxy.toml
networks:
- pihole
networks:
pihole:
name: pihole

View File

@@ -0,0 +1,10 @@
# Paths
SERVICE_DATA_ROOT_PATH=
# Basic Configuration
TZ=UTC
# Pi-hole Configuration
PIHOLE_WEBPASSWORD=
PIHOLE_DNS_PORT=53
PIHOLE_HTTP_PORT=80