feat(docker): add pihole exporter for metrics

Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
This commit is contained in:
Rodney Osodo
2026-07-05 19:25:32 +00:00
parent ffea38e15a
commit d294e44129
+19
View File
@@ -40,3 +40,22 @@ services:
- 2052:53/udp
security_opt:
- 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