-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
105 lines (97 loc) · 2.49 KB
/
docker-compose.yml
File metadata and controls
105 lines (97 loc) · 2.49 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
services:
qdrant:
image: qdrant/qdrant:latest
container_name: qdrant-container
ports:
- "6333:6333"
- "6334:6334" # gRPC port
volumes:
- qdrant_data:/qdrant/storage
environment:
- QDRANT__SERVICE__HTTP_PORT=6333
- QDRANT__SERVICE__GRPC_PORT=6334
- QDRANT__LOG_LEVEL=INFO
restart: unless-stopped
networks:
- app-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6333/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
fastapi-app:
image: arpankumar1119/hackrx-bajaj:latest
container_name: fastapi-app-container
command: uvicorn src.main:app --host 0.0.0.0 --port 8000 --workers 1
environment:
# API Keys
- API_KEY=${API_KEY}
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
- OPENAI_API_KEY=${OPENAI_API_KEY}
# Qdrant Configuration
- QDRANT_HOST=qdrant
- QDRANT_PORT=6333
- QDRANT_COLLECTION_NAME=bajaj_documents
- QDRANT_TIMEOUT=60
- VECTOR_DIMENSION=1536
# System Configuration
- PYTHONPATH=/app
- PYTHONUNBUFFERED=1
- PYTHONDONTWRITEBYTECODE=1
expose:
- "8000"
volumes:
- embedding_cache:/tmp/embedding_cache
- vector_db:/app/vector_db
- document_cache:/app/document_cache
depends_on:
- qdrant
restart: unless-stopped
networks:
- app-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/hackrx/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
nginx:
image: nginx:alpine
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/sites-available/llmnow.dev.conf:/etc/nginx/conf.d/default.conf
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
depends_on:
- fastapi-app
restart: unless-stopped
networks:
- app-network
certbot:
image: certbot/certbot
container_name: certbot-container
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
networks:
- app-network
# This service runs on-demand, not continuously
profiles:
- tools
volumes:
embedding_cache:
driver: local
vector_db:
driver: local
qdrant_data:
driver: local
document_cache:
driver: local
networks:
app-network:
driver: bridge