64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
|
|
services:
|
|
prometheus:
|
|
image: prom/prometheus:latest
|
|
container_name: prometheus
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
|
- prometheus-data:/prometheus
|
|
command:
|
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
|
- "--storage.tsdb.path=/prometheus"
|
|
- "--storage.tsdb.retention.time=90d"
|
|
ports:
|
|
- "9090:9090"
|
|
networks:
|
|
- monitoring
|
|
grafana:
|
|
image: grafana/grafana:latest
|
|
container_name: grafana
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- prometheus
|
|
environment:
|
|
# Change this before going live, or set via .env file
|
|
- GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD:?err}
|
|
- GF_USERS_ALLOW_SIGN_UP=false
|
|
volumes:
|
|
- grafana-data:/var/lib/grafana
|
|
- ./grafana/provisioning:/etc/grafana/provisioning:ro
|
|
ports:
|
|
- "3000:3000"
|
|
networks:
|
|
- monitoring
|
|
uptime-kuma:
|
|
image: louislam/uptime-kuma:2
|
|
container_name: uptime-kuma
|
|
restart: unless-stopped
|
|
volumes:
|
|
- kuma-data:/app/data
|
|
ports:
|
|
- "3001:3001"
|
|
networks:
|
|
- monitoring
|
|
restic-exporter:
|
|
image: ngosang/restic-exporter:latest
|
|
container_name: restic-exporter
|
|
restart: unless-stopped
|
|
env_file:
|
|
- ./restic-exporter.env
|
|
ports:
|
|
- "8001:8001"
|
|
networks:
|
|
- monitoring
|
|
|
|
volumes:
|
|
prometheus-data:
|
|
grafana-data:
|
|
kuma-data:
|
|
|
|
networks:
|
|
monitoring:
|
|
driver: bridge
|