move grafana and prometheus to shared (#265)

This commit is contained in:
Adil Hafeez 2024-11-12 15:23:30 -08:00 committed by GitHub
parent 5993e36f22
commit 31749bfc74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 36 additions and 681 deletions

View file

@ -34,31 +34,11 @@ services:
- ~/archgw_logs:/var/log/
prometheus:
image: prom/prometheus
container_name: prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yaml"
ports:
- 9090:9090
restart: unless-stopped
volumes:
- ./prometheus:/etc/prometheus
- ./prom_data:/prometheus
# profiles:
# - monitoring
build:
context: ../shared/prometheus
grafana:
image: grafana/grafana
container_name: grafana
build:
context: ../shared/grafana
ports:
- 3000:3000
restart: unless-stopped
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=grafana
volumes:
- ./grafana:/etc/grafana/provisioning/datasources
- ./grafana/dashboard.yaml:/etc/grafana/provisioning/dashboards/main.yaml
- ./grafana/dashboards:/var/lib/grafana/dashboards
# profiles:
# - monitoring
- "3000:3000"