82 lines
2.2 KiB
YAML
82 lines
2.2 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:1
|
|
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
|
|
autokuma:
|
|
image: ghcr.io/bigboot/autokuma:master
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- uptimekuma
|
|
environment:
|
|
AUTOKUMA__KUMA__URL: http://192.168.0.60:3001
|
|
AUTOKUMA__KUMA__USERNAME: jester
|
|
AUTOKUMA__KUMA__PASSWORD: /run/secrets/uptime_pass
|
|
AUTOKUMA__KUMA__TLS__VERIFY: 0
|
|
AUTOKUMA__TAG_NAME: AutoKuma
|
|
AUTOKUMA__DOCKER__HOSTS: unix:///var/run/docker.sock
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- autokuma-data:/data
|
|
|
|
volumes:
|
|
autokuma-data:
|
|
prometheus-data:
|
|
grafana-data:
|
|
kuma-data:
|
|
secrets:
|
|
uptime_pass:
|
|
file: ./secrets/uptimekuma.pass
|
|
networks:
|
|
monitoring:
|
|
driver: bridge
|