Skip to content

Commit

Permalink
Merge pull request #222 from vremenar/master
Browse files Browse the repository at this point in the history
Simplify docker-compose
  • Loading branch information
eko committed Mar 16, 2024
2 parents 46cdb43 + cb2c02c commit ab36588
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
36 changes: 18 additions & 18 deletions docker-compose.yml
@@ -1,19 +1,19 @@
version: "3.6"
services:
pihole_exporter:
build:
context: ./
args:
ARCH: CHANGE_ME
dockerfile: Dockerfile
image: ekofr/pihole-exporter:arm64
container_name: pihole_exporter
expose:
- 9617
environment:
PIHOLE_HOSTNAME: CHANGE_ME
PIHOLE_PORT: CHANGE_ME
PIHOLE_PASSWORD: CHANGE_ME
INTERVAL: 30s
PORT: 9617
restart: always
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
4 changes: 4 additions & 0 deletions pihole-exporter.env
@@ -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

0 comments on commit ab36588

Please sign in to comment.