pihole_exporter
master
This commit is contained in:
parent
b3af5cc2f3
commit
1c43b68661
@ -1,7 +1,7 @@
|
||||
version: "3.4"
|
||||
services:
|
||||
pihole:
|
||||
image: pihole/pihole:latest
|
||||
image: pihole/pihole
|
||||
ports:
|
||||
- target: 53
|
||||
published: 53
|
||||
@ -24,6 +24,7 @@ services:
|
||||
- NET_ADMIN
|
||||
networks:
|
||||
- external
|
||||
- internal
|
||||
- traefik-net
|
||||
volumes:
|
||||
- pihole_etc:/etc/pihole/
|
||||
@ -45,6 +46,23 @@ services:
|
||||
traefik.frontend.headers.STSIncludeSubdomains: "true"
|
||||
traefik.frontend.headers.STSPreload: "true"
|
||||
|
||||
pihole_exporter:
|
||||
image: ekofr/pihole-exporter:v0.0.11
|
||||
environment:
|
||||
PIHOLE_HOSTNAME: "pihole"
|
||||
PIHOLE_API_TOKEN: "${PIHOLEAPITOKEN}"
|
||||
INTERVAL: "30s"
|
||||
PORT: "9617"
|
||||
networks:
|
||||
- internal
|
||||
- prometheus_prometheus-net
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: any
|
||||
delay: 5s
|
||||
|
||||
|
||||
volumes:
|
||||
pihole_dnsmasq:
|
||||
@ -52,8 +70,14 @@ volumes:
|
||||
|
||||
networks:
|
||||
external:
|
||||
internal:
|
||||
driver: overlay
|
||||
internal: true
|
||||
traefik-net:
|
||||
external: true
|
||||
prometheus_prometheus-net:
|
||||
external: true
|
||||
|
||||
### Environment variables
|
||||
# HOST
|
||||
# PIHOLEAPITOKEN
|
||||
Loading…
Reference in New Issue
Block a user