-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) Β· 1.98 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) Β· 1.98 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
services:
# ββ EduBrain App βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
edubrain:
image: indersharma/edubrain-app:v4
platform: linux/amd64 # target K8s cluster architecture
container_name: edubrain
ports:
- "8501:8501" # Streamlit UI
- "9091:9091" # Prometheus metrics
env_file:
- .env # picks up GROQ_API_KEY from your local .env
volumes:
- faiss_data:/app/faiss_index # persist FAISS index across restarts
# ββ Prometheus ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
prometheus:
image: prom/prometheus:latest
platform: linux/amd64
container_name: prometheus
ports:
- "9090:9090" # Prometheus UI at http://localhost:9090
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.retention.time=7d"
depends_on:
- edubrain
# ββ Grafana βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
grafana:
image: grafana/grafana:latest
platform: linux/amd64
container_name: grafana
ports:
- "3000:3000" # Grafana UI at http://localhost:3000
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_DATASOURCES_DEFAULT_URL=http://prometheus:9090
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning # auto-provisions datasource
depends_on:
- prometheus
volumes:
faiss_data:
prometheus_data:
grafana_data: