forked from Hahfyeex/Stellar-PolyMarket
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.monitoring.yml
More file actions
51 lines (46 loc) · 1.5 KB
/
docker-compose.monitoring.yml
File metadata and controls
51 lines (46 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: "3.9"
# Extend your existing docker-compose.yml with these services.
# Usage: docker compose -f docker-compose.yml -f docker-compose.monitoring.yml up -d
services:
prometheus:
image: prom/prometheus:v2.47.0
container_name: stella_prometheus
restart: unless-stopped
volumes:
- ./grafana/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--storage.tsdb.retention.time=30d"
- "--web.console.libraries=/etc/prometheus/console_libraries"
- "--web.console.templates=/etc/prometheus/consoles"
ports:
- "9090:9090"
networks:
- stella_net
grafana:
image: grafana/grafana:10.1.0
container_name: stella_grafana
restart: unless-stopped
environment:
GF_SECURITY_ADMIN_USER: ${GRAFANA_USER:-admin}
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_PASSWORD:-stella_admin}
GF_USERS_ALLOW_SIGN_UP: "false"
GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH: /etc/grafana/dashboards/protocol-health.json
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning:ro
- ./grafana/dashboards:/etc/grafana/dashboards:ro
ports:
- "3001:3000"
depends_on:
- prometheus
networks:
- stella_net
volumes:
prometheus_data:
grafana_data:
networks:
stella_net:
external: true # assumes your existing services share this network