mirror of
https://github.com/eko/pihole-exporter.git
synced 2024-11-24 11:37:03 +01:00
19 lines
456 B
YAML
19 lines
456 B
YAML
services:
|
|
pihole-exporter:
|
|
container_name: pihole-exporter
|
|
image: ekofr/pihole-exporter:latest
|
|
env_file:
|
|
- pihole-exporter.env
|
|
ports:
|
|
- "9617:9617"
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "5k"
|
|
max-file: "5"
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--tries=1", "--spider", "http://localhost:9617/metrics"]
|
|
interval: 300s
|
|
retries: 5
|
|
timeout: 10s
|
|
restart: always |