Jafner.net/archive/docker_config/prometheus/docker-compose.yml
Joey Hafner 6086222503
Reorganize root level of repo.
- Move homelab, Jafner.dev (now called blog) to root.
- Rename "archived projects" -> "archive"
- Rename "active projects" -> "projects"
- Rename "jafner-homebrew" -> "5ehomebrew"
- Rename "docker-llm-amd" -> "local-ai"
2024-07-16 12:17:55 -07:00

46 lines
1.3 KiB
YAML

version: '3'
services:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
networks:
- monitoring
- web
ports:
- 9090:9090
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
restart: unless-stopped
command:
- "--config.file=/etc/prometheus/prometheus.yml"
labels:
- traefik.http.routers.prometheus.rule=Host(`prometheus.jafner.net`)
- traefik.http.routers.prometheus.tls.certresolver=lets-encrypt
5e-jafner-tools:
image: lusotycoon/apache-exporter
container_name: prometheus-5e-jafner-tools
restart: unless-stopped
networks:
- monitoring
command: '--scrape_uri "https://5e.jafner.tools/server-status/?auto"'
pihole-jafner-net:
image: ekofr/pihole-exporter:latest
container_name: prometheus-pihole-jafner-net
restart: unless-stopped
networks:
- monitoring
environment:
- PIHOLE_HOSTNAME=pihole.jafner.net
- PIHOLE_PASSWORD=***REMOVED***
- INTERVAL=15s
- PORT=9617
networks:
monitoring:
external: true
web:
external: true