-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.02 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
services:
db:
image: postgres:latest
container_name: rag-postgres
environment:
POSTGRES_DB: rag
POSTGRES_USER: postgres
POSTGRES_PASSWORD: yourSecurePassword
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
qdrant:
image: qdrant/qdrant:latest
container_name: rag-qdrant
ports:
- "6333:6333"
volumes:
- qdrant_storage:/qdrant/storage
api:
build:
context: .
dockerfile: Dockerfile
container_name: rag-api
depends_on: [db, qdrant]
env_file:
- .env
environment:
- ASYNC_DATABASE_URL=postgresql+asyncpg://postgres:yourSecurePassword@db:5432/rag
- SYNC_DATABASE_URL=postgresql://postgres:yourSecurePassword@db:5432/rag
- QDRANT_HOST=qdrant
- QDRANT_PORT=6333
ports:
- "8000:8000"
volumes:
- app_data:/app/data
- hf_cache:/root/.cache/huggingface
- torch_cache:/root/.cache/torch
volumes:
pg_data:
qdrant_storage:
app_data:
hf_cache:
torch_cache: