-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (74 loc) · 1.84 KB
/
docker-compose.yml
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
version: '3'
networks:
bot_services_network:
services:
bot:
restart: on-failure
environment:
VECTOR_DB_SERVICE_HOST: "vectordb_service"
LLM_SERVICE_HOST: "llm_service"
VECTOR_DB_SERVICE_PORT: "8079"
LLM_SERVICE_PORT: "8081"
build:
context: ./bot
networks:
- bot_services_network
volumes:
- ./credentials:/app/credentials
- ./bot:/app/bot
- ./tgmedbot:/app/tgmedbot
- ./lexicon.yaml:/app/lexicon.yaml
entrypoint: [ "python", "bot/bot.py" ]
deploy:
resources:
limits:
cpus: '4.00'
memory: 768MB
depends_on:
- vectordb_service
- llm_service
vectordb_service:
build:
context: ./vectordb_service
environment:
VECTOR_DB_SERVICE_HOST: "vectordb_service"
LLM_SERVICE_HOST: "llm_service"
VECTOR_DB_SERVICE_PORT: "8079"
LLM_SERVICE_PORT: "8081"
ports:
- "8079:8079"
volumes:
- ./vectordb_service:/app/
- ./chroma:/chroma
networks:
- bot_services_network
# entrypoint: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8079"]
entrypoint: [ "python", "main.py"]
restart: on-failure
deploy:
resources:
limits:
cpus: '3.00'
memory: 2000MB
llm_service:
build:
context: ./llm_service
ports:
- "8081:8081"
environment:
VECTOR_DB_SERVICE_HOST: "vectordb_service"
LLM_SERVICE_HOST: "llm_service"
VECTOR_DB_SERVICE_PORT: "8079"
LLM_SERVICE_PORT: "8081"
volumes:
- ./llm_service:/app/
networks:
- bot_services_network
# entrypoint: [ "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8081" ]
entrypoint: [ "python", "main.py"]
deploy:
resources:
limits:
cpus: '4.00'
memory: 5000MB
restart: on-failure