Files
nameko-prometheus/docker-compose-monitoring.yaml
2024-07-14 23:06:40 +03:00

31 lines
821 B
YAML

volumes:
prometheus-data:
services:
prometheus:
image: prom/prometheus:v2.53.1
container_name: nameko-prometheus
restart: unless-stopped
command:
- "--config.file=/etc/prometheus/prometheus.yaml"
ports:
- 9090:9090
volumes:
- ./prometheus/prometheus.yaml:/etc/prometheus/prometheus.yaml
- prometheus-data:/prometheus
grafana:
image: grafana/grafana:11.1.0
container_name: nameko-grafana
restart: unless-stopped
depends_on:
- prometheus
ports:
- 3000:3000
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=password
volumes:
- ./grafana/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yml
- ./grafana/dashboard.yaml:/etc/grafana/provisioning/dashboards/main.yaml