-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
67 lines (63 loc) · 1.36 KB
/
compose.yml
File metadata and controls
67 lines (63 loc) · 1.36 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
services:
# Redis database for cache and sessions
redis:
image: redis:7-alpine
container_name: rag_redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
restart: unless-stopped
command: redis-server --appendonly yes
# Backend RAG - PDF processing and queries
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: rag_backend
ports:
- "8000:8000"
env_file:
- .env
environment:
- REDIS_URL=redis://redis:6379
- VECTORSTORE_PATH=/app/vectorstore
- UPLOAD_FOLDER=/app/uploads
volumes:
- ./backend:/app
- vectorstore_data:/app/vectorstore
- uploads_data:/app/uploads
depends_on:
- redis
restart: unless-stopped
command: python app.py
# Frontend Flask - Web interface
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: rag_frontend
ports:
- "5000:5000"
env_file:
- .env
environment:
- BACKEND_URL=http://backend:8000
- REDIS_URL=redis://redis:6379
volumes:
- ./frontend:/app
depends_on:
- backend
- redis
restart: unless-stopped
command: python app.py
volumes:
redis_data:
driver: local
vectorstore_data:
driver: local
uploads_data:
driver: local
networks:
default:
name: rag_network