2023-12-14 11:29:00 +00:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
grafana:
|
2024-04-11 07:59:36 +00:00
|
|
|
image: grafana/grafana:10.2.3
|
2023-12-14 11:29:00 +00:00
|
|
|
restart: always
|
2024-01-17 08:32:10 +00:00
|
|
|
environment:
|
|
|
|
GF_SERVER_ROOT_URL: ${GF_SERVER_ROOT_URL}
|
2024-05-17 04:01:41 +00:00
|
|
|
CERC_GRAFANA_ALERTS_SUBGRAPH_IDS: ${CERC_GRAFANA_ALERTS_SUBGRAPH_IDS}
|
2023-12-14 11:29:00 +00:00
|
|
|
volumes:
|
|
|
|
- ../config/monitoring/grafana/provisioning:/etc/grafana/provisioning
|
|
|
|
- ../config/monitoring/grafana/dashboards:/etc/grafana/dashboards
|
2024-05-17 04:01:41 +00:00
|
|
|
- ../config/monitoring/update-grafana-alerts-config.sh:/update-grafana-alerts-config.sh
|
2023-12-14 11:29:00 +00:00
|
|
|
- grafana_storage:/var/lib/grafana
|
2024-05-17 04:01:41 +00:00
|
|
|
user: root
|
|
|
|
entrypoint: ["bash", "-c"]
|
|
|
|
command: |
|
|
|
|
"/update-grafana-alerts-config.sh && /run.sh"
|
2023-12-14 11:29:00 +00:00
|
|
|
ports:
|
|
|
|
- "3000"
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "nc", "-vz", "localhost", "3000"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 10
|
|
|
|
start_period: 3s
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
grafana_storage:
|