This commit is contained in:
2024-05-22 12:49:28 -05:00
commit 35b77bb0df
219 changed files with 9997 additions and 0 deletions

5
hosts/ps10rp/pihole/.env Normal file
View File

@@ -0,0 +1,5 @@
TZ=US/Central
WEBPASSWORD=""
RATE_LIMIT=0/0
FTLCONF_MAXDBDAYS=14
WEB_PORT=8080

View File

@@ -0,0 +1,6 @@
PIHOLE_HOSTNAME=pihole
PIHOLE_API_TOKEN=""
PIHOLE_PROTOCOL=http
PIHOLE_PORT=8080
INTERVAL=90s
PORT=9617

View File

@@ -0,0 +1,61 @@
services:
pihole:
container_name: pihole
env_file:
- .env
image: docker.io/pihole/pihole:latest
labels:
traefik.docker.network: traefik
traefik.enable: true
traefik.http.routers.pihole.entrypoints: websecure
traefik.http.routers.pihole.rule: Host(`pihole.lebens-home.net`)
traefik.http.routers.pihole.service: pihole
traefik.http.services.pihole.loadbalancer.server.port: 8080
networks:
traefik: null
ports:
- 53:53/tcp
- 53:53/udp
- 8080:8080
privileged: true
volumes:
- config:/etc/pihole
- dnsmasq:/etc/dnsmasq.d
- logs:/var/log
pihole_exporter:
container_name: pihole-exporter
depends_on:
- pihole
env_file:
- .exporter.env
image: docker.io/ekofr/pihole-exporter:latest
networks:
traefik: null
networks:
traefik:
name: traefik
external: true
volumes:
config:
driver: local
driver_opts:
type: none
o: bind
device: /mnt/data/containers/pihole/config
dnsmasq:
driver: local
driver_opts:
type: none
o: bind
device: /mnt/data/containers/pihole/dnsmasq
logs:
driver: local
driver_opts:
type: none
o: bind
device: /mnt/data/containers/pihole/logs