bbd88ba389
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
31 lines
821 B
YAML
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
|