-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
81 lines (77 loc) · 1.69 KB
/
docker-compose.yml
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
81
services:
app:
build: .
ports:
- "8000:8000"
volumes:
- .:/app
- ./uploads:/app/uploads
- ./logs:/app/logs
environment:
- ENVIRONMENT=development # Change to 'production' for production mode
- MAX_WORKERS=4
- PYTHONPATH=/app
env_file:
- .env
depends_on:
- mongodb
- qdrant
develop:
watch:
- path: ./service
target: /app/service
action: sync
streamlit:
build:
context: .
dockerfile: streamlit/Dockerfile
ports:
- "8501:8501"
volumes:
- ./streamlit:/app/streamlit
- ./uploads:/app/uploads
- ./logs:/app/logs
environment:
- API_URL=http://app:8000
- WS_URL=ws://app:8000
- PYTHONPATH=/app
- STREAMLIT_SERVER_PORT=8501
- STREAMLIT_SERVER_HEADLESS=true
- STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
- MONGODB_URL=mongodb://mongodb:27017
env_file:
- .env
depends_on:
- app
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:8501/_stcore/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
develop:
watch:
- path: ./streamlit
target: /app/streamlit
action: sync
mongodb:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
environment:
- MONGO_INITDB_DATABASE=rag_system
qdrant:
image: qdrant/qdrant:latest
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_data:/qdrant/storage
environment:
- QDRANT_API_KEY=${QDRANT_API_KEY}
volumes:
mongodb_data:
qdrant_data: