Bxl-rpi pihole

This commit is contained in:
Brieuc Dubois 2023-04-11 20:31:51 +02:00 committed by Bhasher
parent e6746777dd
commit f3c67e3223
1 changed files with 30 additions and 0 deletions

View File

@ -371,3 +371,33 @@ services:
- /etc/localtime:/etc/localtime:ro
command: crond -f
restart: unless-stopped
pihole:
container_name: pihole
image: cbcrowe/pihole-unbound:latest
ports:
- 53:53/tcp
- 53:53/udp
environment:
- TZ=Europe/Paris
- WEBPASSWORD=${PIHOLE_PASSWORD}
- WEBTHEME=default-dark
- REV_SERVER=false
- PIHOLE_DNS_=127.0.0.1#5335
- DNSSEC=true
- DNSMASQ_LISTENING=all
- FTLCONF_REPLY_ADDR4=192.168.1.220
- FTLCONF_RATE_LIMIT=0/0
- FTL_CMD=debug
- DNSMASQ_USER=root
volumes:
- $HOME/pihole/config:/etc/pihole
- $HOME/pihole/dnsmasq.d:/etc/dnsmasq.d
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.pihole.rule=Host(`pihole.bhasher.com`)"
- "traefik.http.routers.pihole.entrypoints=internalsecure"
- "traefik.http.services.pihole.loadbalancer.server.port=80"
- "traefik.http.routers.pihole.tls=true"
- "traefik.http.routers.pihole.tls.certresolver=http"