-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (52 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
54 lines (52 loc) · 1.18 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
52
53
54
services:
studio:
build:
context: .
target: runtime
image: rag-framework:latest
container_name: rag-studio
ports:
- "8501:8501"
volumes:
# Persist the SQLite database and FAISS indexes across restarts
- rag-data:/app/data
# Mount local documents folder for easy ingestion
- ./docs:/app/docs:ro
env_file:
- .env
environment:
RAG_DATA_DIR: /app/data
KMP_DUPLICATE_LIB_OK: "TRUE" # suppress OpenMP conflict on some hosts
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8501/_stcore/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
mcp:
build:
context: .
target: runtime
image: rag-framework:latest
container_name: rag-mcp
command:
- python
- -m
- rag.app.mcp_server.server
ports:
- "8000:8000"
volumes:
- rag-data:/app/data
env_file:
- .env
environment:
RAG_DATA_DIR: /app/data
KMP_DUPLICATE_LIB_OK: "TRUE"
restart: unless-stopped
depends_on:
studio:
condition: service_healthy
volumes:
rag-data:
driver: local