-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
59 lines (54 loc) · 1.44 KB
/
docker-compose.yaml
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
version: '3.8'
services:
semantic-backend:
build: ./backend
container_name: semantic-backend
depends_on:
- qdrant-semantic-search
- redis
- celery-worker
environment:
- QDRANT_URL=http://qdrant-semantic-search:6444
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
command: uvicorn main:app --host 0.0.0.0 --port 8002
volumes:
- .volumes/huggingface_models:/root/.cache/huggingface
ports:
- 8002:8002
redis:
image: redis
ports:
- "6379:6379"
qdrant-semantic-search:
image: qdrant/qdrant:latest
container_name: qdrant-semantic-search
ports:
- 6444:6444
- 6445:6445
expose:
- 6444
- 6445
- 6446
volumes:
- .volumes/qdrant_storage:/qdrant/storage
environment:
- QDRANT__SERVICE__HTTP_PORT=6444
- QDRANT__SERVICE__GRPC_PORT=6445
celery-worker:
build: ./backend
command: celery -A tasks.celery_app worker --loglevel=info
depends_on:
- redis
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- QDRANT_URL=http://qdrant-semantic-search:6444
volumes:
- .volumes/huggingface_models:/root/.cache/huggingface
semantic-frontend:
build: ./frontend
container_name: semantic-frontend
ports:
- 8003:8003
command: streamlit run main.py --server.port 8003