-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (25 loc) · 1.7 KB
/
docker-compose.yml
File metadata and controls
29 lines (25 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
services:
pihole-long-term-stats:
image: ghcr.io/davistdaniel/piholelongtermstats:latest
container_name: pihole-lt-stats
ports:
- "9292:9292" # Map host port to container port
volumes:
- ./pihole-FTL.db:/app/pihole-FTL.db:ro # Path to your Pi-hole DB file (adjust if it's not in current directory)
# To include additional Pi-hole databases, mount each one similarly:
#- ./pihole-FTL-2.db:/app/pihole-FTL-2.db:ro
environment:
- PIHOLE_LT_STATS_DB_PATH=/app/pihole-FTL.db # Path inside the container to the mounted DB file
# Provide multiple databases by listing their container paths as a
# comma-separated string, e.g.:
#- PIHOLE_LT_STATS_DB_PATH=/app/pihole-FTL.db,/app/pihole-FTL-2.db
- PIHOLE_LT_STATS_DAYS=31 # Number of days from now of data to analyze; change if desired
- PIHOLE_LT_STATS_PORT=9292 # Port the app listens to inside container; keep in sync with ports mapping
- PIHOLE_LT_STATS_NCLIENTS=10 # Number of clients to show in top clients plots
- PIHOLE_LT_STATS_NDOMAINS=10 # Number of domains to show in top domains plots
- PIHOLE_LT_STATS_TIMEZONE=UTC # timezone for display
#- PIHOLE_LT_STATS_IGNORE_DOMAINS=.*\.local # regex patterns for excluding domains. Example: to exclude all .local domains use .*\.local
# To ignore multiple domain patterns, separate each regex with a comma.
# example definition below ignores: anything ending in .local, anything starting with ads, exactly example.com
#- PIHOLE_LT_STATS_IGNORE_DOMAINS=.*\.local,^ads\.,^example\.com$
restart: unless-stopped