add prometheus and grafana but still have to find templates dashboard for prometheus and munin
This commit is contained in:
@@ -1,4 +1,35 @@
|
||||
services:
|
||||
#https://dev.to/rafi021/how-to-set-up-a-monitoring-stack-with-prometheus-grafana-and-node-exporter-using-docker-compose-17cc
|
||||
#https://belginux.com/monitoring-docker-grafana-prometheus-cadvisor/
|
||||
#https://github.com/Einsteinish/Docker-Compose-Prometheus-and-Grafana/tree/master
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
container_name: prometheus
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "9090:9090"
|
||||
volumes:
|
||||
- ../prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
||||
command:
|
||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
container_name: grafana
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- grafana-data:/var/lib/grafana
|
||||
- ../grafana/provisioning:/etc/grafana/provisioning
|
||||
depends_on:
|
||||
- prometheus
|
||||
environment:
|
||||
- GF_SECURITY_ADMIN_USER=tlc
|
||||
- GF_SECURITY_ADMIN_PASSWORD=tlc
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
front:
|
||||
build:
|
||||
context: ..
|
||||
|
||||
Reference in New Issue
Block a user