mirror of
https://github.com/eko/pihole-exporter.git
synced 2024-11-21 11:05:22 +01:00
Simplify docker-compose
This commit is contained in:
parent
46cdb43daa
commit
cb2c02c31a
@ -1,19 +1,19 @@
|
|||||||
version: "3.6"
|
|
||||||
services:
|
services:
|
||||||
pihole_exporter:
|
pihole-exporter:
|
||||||
build:
|
container_name: pihole-exporter
|
||||||
context: ./
|
image: ekofr/pihole-exporter:latest
|
||||||
args:
|
env_file:
|
||||||
ARCH: CHANGE_ME
|
- pihole-exporter.env
|
||||||
dockerfile: Dockerfile
|
ports:
|
||||||
image: ekofr/pihole-exporter:arm64
|
- "9617:9617"
|
||||||
container_name: pihole_exporter
|
logging:
|
||||||
expose:
|
driver: "json-file"
|
||||||
- 9617
|
options:
|
||||||
environment:
|
max-size: "5k"
|
||||||
PIHOLE_HOSTNAME: CHANGE_ME
|
max-file: "5"
|
||||||
PIHOLE_PORT: CHANGE_ME
|
healthcheck:
|
||||||
PIHOLE_PASSWORD: CHANGE_ME
|
test: ["CMD", "wget", "--tries=1", "--spider", "http://localhost:9617/metrics"]
|
||||||
INTERVAL: 30s
|
interval: 300s
|
||||||
PORT: 9617
|
retries: 5
|
||||||
|
timeout: 10s
|
||||||
restart: always
|
restart: always
|
4
pihole-exporter.env
Normal file
4
pihole-exporter.env
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
PIHOLE_HOSTNAME=pihole # Chage to PiHole's IP address or FQDN
|
||||||
|
PIHOLE_PASSWORD=MyStrongPassword # Change to your PiHole's password
|
||||||
|
INTERVAL=90s
|
||||||
|
PORT=9617
|
Loading…
Reference in New Issue
Block a user