Bxl-swarm pihole
This commit is contained in:
parent
85f93019d6
commit
44cd0885ab
|
@ -2,38 +2,41 @@ version: '3.7'
|
||||||
services:
|
services:
|
||||||
pihole:
|
pihole:
|
||||||
image: cbcrowe/pihole-unbound:latest
|
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:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 1
|
replicas: 1
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: any
|
condition: any
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
ports:
|
labels:
|
||||||
- mode: host
|
- "traefik.enable=true"
|
||||||
protocol: tcp
|
- "traefik.http.routers.pihole.rule=Host(`pihole.bxl.bhasher.com`)"
|
||||||
published: 53
|
- "traefik.http.routers.pihole.entrypoints=internalsecure"
|
||||||
target: 53
|
- "traefik.http.services.pihole.loadbalancer.server.port=80"
|
||||||
- mode: host
|
- "traefik.http.routers.pihole.tls=true"
|
||||||
protocol: udp
|
- "traefik.http.routers.pihole.tls.certresolver=http"
|
||||||
published: 53
|
|
||||||
target: 53
|
networks:
|
||||||
- mode: host
|
external:
|
||||||
protocol: tcp
|
external: true
|
||||||
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'
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ services:
|
||||||
- "--entrypoints.external.http.redirections.entryPoint.to=externalsecure"
|
- "--entrypoints.external.http.redirections.entryPoint.to=externalsecure"
|
||||||
- "--entrypoints.external.http.redirections.entryPoint.scheme=https"
|
- "--entrypoints.external.http.redirections.entryPoint.scheme=https"
|
||||||
- "--entrypoints.external.http.redirections.entryPoint.permanent=true"
|
- "--entrypoints.external.http.redirections.entryPoint.permanent=true"
|
||||||
#- "--log.level=DEBUG"
|
- "--log.level=DEBUG"
|
||||||
environment:
|
environment:
|
||||||
- TZ=Europe/Paris
|
- TZ=Europe/Paris
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in New Issue