Bxl-swarm pihole

This commit is contained in:
Brieuc Dubois 2023-01-27 19:28:42 +01:00 committed by Bhasher
parent 85f93019d6
commit 44cd0885ab
2 changed files with 33 additions and 30 deletions

View File

@ -2,38 +2,41 @@ version: '3.7'
services:
pihole:
image: cbcrowe/pihole-unbound:latest
ports:
- 53:53/tcp
- 53:53/udp
- 45677:80
environment:
- TZ=Europe/Paris
- WEBPASSWORD=z9w1r0FvKKvuLdXIygDlhidUhinERhOKZTBJtOXCMaFLi1dZvh0f2vsy9miDqsFu
- 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:
- /mnt/nfs/pihole/config:/etc/pihole
- /mnt/nfs/pihole/dnsmasq.d:/etc/dnsmasq.d
networks:
- external
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: any
max_attempts: 3
ports:
- mode: host
protocol: tcp
published: 53
target: 53
- mode: host
protocol: udp
published: 53
target: 53
- mode: host
protocol: tcp
published: 80
target: 80
environment:
TZ: 'Europe/Paris'
WEBPASSWORD: 'z9w1r0FvKKvuLdXIygDlhidUhinERhOKZTBJtOXCMaFLi1dZvh0f2vsy9miDqsFu'
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'
volumes:
- '/mnt/nfs/pihole/config:/etc/pihole'
- '/mnt/nfs/pihole/dnsmasq.d:/etc/dnsmasq.d'
# - '/tmp/config:/etc/pihole'
# - '/tmp/dnsmasq.d:/etc/dnsmasq.d'
labels:
- "traefik.enable=true"
- "traefik.http.routers.pihole.rule=Host(`pihole.bxl.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"
networks:
external:
external: true

View File

@ -23,7 +23,7 @@ services:
- "--entrypoints.external.http.redirections.entryPoint.to=externalsecure"
- "--entrypoints.external.http.redirections.entryPoint.scheme=https"
- "--entrypoints.external.http.redirections.entryPoint.permanent=true"
#- "--log.level=DEBUG"
- "--log.level=DEBUG"
environment:
- TZ=Europe/Paris
ports: