mirror of
https://github.com/MSWS/Homelab.git
synced 2025-12-05 23:00:24 -08:00
49 lines
1.0 KiB
YAML
49 lines
1.0 KiB
YAML
services:
|
|
grafana:
|
|
image: grafana/grafana
|
|
container_name: grafana
|
|
environment:
|
|
GF_FEATURE_TOGGLES_ENABLE: "publicDashboards"
|
|
GF_SERVER_ROOT_URL: "https://stats.msws.xyz"
|
|
restart: always
|
|
volumes:
|
|
- grafana-data:/var/lib/grafana
|
|
networks:
|
|
- cloudflared
|
|
- grafana
|
|
|
|
prometheus:
|
|
image: prom/prometheus:latest
|
|
container_name: prometheus
|
|
restart: always
|
|
volumes:
|
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
|
- prometheus-data:/etc/prometheus/
|
|
command:
|
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
|
- '--storage.tsdb.retention.time=365d'
|
|
networks:
|
|
- cloudflared
|
|
- grafana
|
|
|
|
node_exporter:
|
|
image: quay.io/prometheus/node-exporter:latest
|
|
container_name: node_exporter
|
|
command:
|
|
- '--path.rootfs=/host'
|
|
pid: host
|
|
restart: unless-stopped
|
|
volumes:
|
|
- '/:/host:ro,rslave'
|
|
networks:
|
|
- grafana
|
|
|
|
volumes:
|
|
grafana-data:
|
|
prometheus-data:
|
|
|
|
networks:
|
|
cloudflared:
|
|
external: true
|
|
grafana:
|