forked from gdg-charusat/PDF_QA_Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (57 loc) · 1.35 KB
/
docker-compose.yml
File metadata and controls
61 lines (57 loc) · 1.35 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
version: '3.8'
services:
rag-service:
build:
context: ./rag-service
dockerfile: Dockerfile
ports:
- '5000:5000'
environment:
- SECRET_KEY=your-super-secret-jwt-key-here-change-in-production
- ACCESS_TOKEN_EXPIRE_MINUTES=30
- DATABASE_URL=sqlite:///./pdf_qa_bot.db
- HF_GENERATION_MODEL=google/flan-t5-small
volumes:
- ./uploads:/app/uploads
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:5000/healthz']
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
gateway:
build:
context: .
dockerfile: Dockerfile
ports:
- '4000:4000'
environment:
- RAG_SERVICE_URL=http://rag-service:5000
- PORT=4000
volumes:
- ./uploads:/app/uploads
depends_on:
rag-service:
condition: service_healthy
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:4000/healthz']
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- '3000:3000'
depends_on:
gateway:
condition: service_healthy
environment:
- REACT_APP_API_URL=http://localhost:4000
restart: unless-stopped
volumes:
uploads: