-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (76 loc) · 1.93 KB
/
Copy pathdocker-compose.yml
File metadata and controls
80 lines (76 loc) · 1.93 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
# Vector Database
qdrant:
image: qdrant/qdrant:latest
restart: unless-stopped
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_data:/qdrant/storage
environment:
- QDRANT__SERVICE__HTTP_PORT=6333
networks:
- rag-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6333/healthz"]
interval: 10s
timeout: 5s
retries: 5
# Backend API
backend:
build:
context: ./backend
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "8000:8000"
environment:
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_REGION=${AWS_REGION:-eu-central-1}
- QDRANT_HOST=qdrant
- QDRANT_PORT=6333
- QDRANT_COLLECTION=documents
- BEDROCK_MODEL_ID=anthropic.claude-3-5-sonnet-20241022-v2:0
- EMBEDDING_MODEL_ID=amazon.titan-embed-text-v2:0
- CHUNK_SIZE=512
- CHUNK_OVERLAP=50
- LLM_MAX_TOKENS=${LLM_MAX_TOKENS:-2048}
- LLM_TEMPERATURE=${LLM_TEMPERATURE:-0.3}
- RETRIEVAL_TOP_K=${RETRIEVAL_TOP_K:-5}
- MAX_UPLOAD_SIZE_MB=${MAX_UPLOAD_SIZE_MB:-50}
- CORS_ORIGINS=${CORS_ORIGINS:-http://localhost:3000,http://localhost:5173}
- LOG_LEVEL=info
volumes:
- ./backend/app:/app/app:ro
depends_on:
qdrant:
condition: service_healthy
networks:
- rag-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 10s
timeout: 5s
retries: 5
# Frontend React App
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "3000:80"
environment:
- VITE_API_URL=http://localhost:8000
depends_on:
backend:
condition: service_healthy
networks:
- rag-network
volumes:
qdrant_data:
networks:
rag-network:
driver: bridge