- Notifications
You must be signed in to change notification settings - Fork1
/
Copy pathdocker-compose.local.yml
84 lines (75 loc) · 1.81 KB
/
docker-compose.local.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
79
80
81
82
83
84
version:'3.3'
services:
ollama_0:
image:ollama/ollama
container_name:ollama_0
env_file:
-.env
ports:
-${OLLAMA_0_EXTERNAL_PORT}:${OLLAMA_INTERNAL_PORT}
volumes:
-./volumes/ollama_0:/root/.ollama
frontend:
build:services/frontend
container_name:frontend
ports:
-${FRONTEND_EXTERNAL_PORT}:${FRONTEND_INTERNAL_PORT}
env_file:
-.env
depends_on:
-llm_facade
-code_analyzer
-db_interface
llm_facade:
build:services/llm_facade
container_name:llm_facade
command:gunicorn -w 8 --timeout 0 --bind 0.0.0.0:${LLM_FACADE_INTERNAL_PORT} manage:app
expose:
-${LLM_FACADE_INTERNAL_PORT}
depends_on:
-ollama_0
-db_interface
env_file:
-.env
code_analyzer:
build:services/code_analyzer
container_name:code_analyzer
ports:
-${CODE_ANALYZER_EXTERNAL_PORT}:${CODE_ANALYZER_INTERNAL_PORT}
env_file:
-.env
depends_on:
-db_interface
db:
image:postgres:12.1
container_name:db
ports:
-${DB_EXTERNAL_PORT}:${DB_INTERNAL_PORT}
env_file:
-.env
environment:
-PGPORT=${DB_INTERNAL_PORT}
volumes:
-./volumes/db-data:/var/lib/postgresql/data
db_interface:
build:services/db_interface
container_name:db_interface
ports:
-${DB_INTERFACE_EXTERNAL_PORT}:${DB_INTERFACE_INTERNAL_PORT}
env_file:
-.env
depends_on:
-db
llm_facade_nginx:
build:services/llm_facade_nginx
container_name:llm_facade_nginx
ports:
-${LLM_FACADE_NGINX_EXTERNAL_PORT}:${LLM_FACADE_NGINX_INTERNAL_PORT}
volumes:
-./services/llm_facade_nginx:/etc/nginx
depends_on:
-llm_facade
cache:
image:redis:5.0.7
container_name:cache
command:redis-server