pihole-exporter/docker-compose.yml
2024-03-16 19:48:02 +01:00

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