Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify docker-compose #222

Merged
merged 1 commit into from Mar 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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