mirror of
https://github.com/rodneyosodo/homelab.git
synced 2026-08-07 07:15:03 +00:00
feat(docker): add pihole exporter for metrics
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
This commit is contained in:
@@ -40,3 +40,22 @@ services:
|
|||||||
- 2052:53/udp
|
- 2052:53/udp
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true
|
||||||
|
|
||||||
|
pihole-exporter:
|
||||||
|
container_name: pihole-exporter
|
||||||
|
image: docker.io/ekofr/pihole-exporter:v1.2.0
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
homelab-network:
|
||||||
|
ipv4_address: 172.30.0.110
|
||||||
|
environment:
|
||||||
|
- PIHOLE_HOSTNAME=172.30.0.100
|
||||||
|
- PIHOLE_PASSWORD=${PIHOLE_WEBPASSWORD}
|
||||||
|
- PORT=2051
|
||||||
|
- PIHOLE_PORT=80
|
||||||
|
- PIHOLE_PROTOCOL=http
|
||||||
|
- INTERVAL=30s
|
||||||
|
ports:
|
||||||
|
- 2051:2051
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
|||||||
Reference in New Issue
Block a user