- 📅 2023-12-30T23:46:53.898Z
- 👁️ 177 katselukertaa
- 🔓 Julkinen
version: '3.8'
services:
grafana:
image: grafana/grafana
container_name: grafana
restart: unless-stopped
ports:
- '3000:3000'
volumes:
- grafana_data:/var/lib/grafana
- /opt/grafana/config:/etc/grafana/
prometheus:
user: root
image: prom/prometheus
ports:
- '9090:9090'
volumes:
- "./prometheus.yml:/etc/prometheus/prometheus.yml"
- ./prometheus_data:/prometheus
command:
node_exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node_exporter
command:
- '--path.rootfs=/host'
network_mode: host
pid: host
restart: unless-stopped
volumes:
- '/:/host:ro,rslave'
volumes:
grafana_data: {}
grafana_config: {}
prometheus_data: {}