-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
244 lines (228 loc) · 5.92 KB
/
docker-compose.yml
File metadata and controls
244 lines (228 loc) · 5.92 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
services:
minio:
image: minio/minio:latest
container_name: context-machine-minio
ports:
- "9000:9000"
- "9001:9001"
env_file:
- .env.local
volumes:
- ./infra/minio/data:/data
command: server /data --console-address ":9001"
networks:
- context-machine-network
rabbitmq:
image: rabbitmq:3-management
container_name: context-machine-rabbitmq
ports:
- "5672:5672"
- "15672:15672"
env_file:
- .env.local
volumes:
- ./infra/rabbitmq/data:/var/lib/rabbitmq
networks:
- context-machine-network
n8n:
image: n8nio/n8n:latest
container_name: context-machine-n8n
restart: unless-stopped
ports:
- "5678:5678"
env_file:
- .env.local
volumes:
- ./infra/n8n/data:/home/node/.n8n
networks:
- context-machine-network
neo4j:
image: neo4j:5
container_name: context-machine-neo4j
restart: unless-stopped
ports:
- "7474:7474"
- "7687:7687"
env_file:
- .env.local
volumes:
- ./infra/neo4j/data:/data
- ./infra/neo4j/logs:/logs
- ./infra/neo4j/conf:/conf
- ./infra/neo4j/plugins:/plugins
networks:
context-machine-network:
aliases:
- context-machine-neo4j-service
- neo4j-service
neo4j-service:
image: context-machine-neo4j-service:latest
container_name: context-machine-neo4j-service
restart: unless-stopped
ports:
- "3001:3001"
env_file:
- .env.local
volumes:
- ./services/neo4j-service/src:/app/src
depends_on:
- neo4j
networks:
- context-machine-network
command: ["python", "-u", "src/app.py"]
analyzer-service:
image: context-machine-analyzer-service:latest
container_name: context-machine-analyzer-service
restart: unless-stopped
ports:
- "3002:3002"
env_file:
- .env.local
volumes:
- ./services/analyzer-service/src:/app/src
- ./project/:/project
depends_on:
- neo4j-service
networks:
- context-machine-network
command: flask run --reload --host=0.0.0.0 --port=3002
websocket-service:
image: context-machine-websocket-service:latest
container_name: context-machine-websocket-service
restart: unless-stopped
ports:
- "3010:3010"
- "3011:3011"
env_file:
- .env.local
volumes:
- ./services/websocket-service/src:/app/src
networks:
- context-machine-network
command: python src/app.py
gitea:
image: gitea/gitea:1.22
container_name: context-machine-gitea
restart: unless-stopped
env_file:
- .env.local
ports:
- "3005:3005"
- "3022:22"
volumes:
- ./infra/gitea/data:/data
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__server__HTTP_PORT=3005
- GITEA__server__SSH_PORT=3022
- GITEA__database__DB_TYPE=sqlite3
- GITEA__database__PATH=/data/gitea/gitea.db
- GITEA__security__INSTALL_LOCK=true
- GITEA__security__SECRET_KEY=supersecretkey987654
- GITEA__service__DISABLE_REGISTRATION=true
networks:
- context-machine-network
# mcp-service:
# image: context-machine-mcp-service:latest
# container_name: context-machine-mcp-service
# restart: unless-stopped
# ports:
# - "3003:3003"
# env_file:
# - .env.local
# volumes:
# - ./services/mcp-service/src:/app/src
# depends_on:
# - neo4j-service
# networks:
# - context-machine-network
# command: ["python", "-u", "src/app.py"]
openwebui:
image: ghcr.io/open-webui/open-webui:main
container_name: context-machine-openwebui
restart: unless-stopped
ports:
- "8080:8080"
environment:
- OPENAI_API_BASE_URL=http://context-machine-ollama:11434/v1
- DEFAULT_MODEL=llama3
- DATA_DIR=/app/backend/data
- TZ=Europe/Berlin
- MCP_SERVERS=http://context-machine-mcp:3003
- MCP_API_KEY=context-machine-bearer-token-123
volumes:
- ./infra/openwebui/data:/app/backend/data
depends_on:
- ollama
networks:
- context-machine-network
ollama:
image: ollama/ollama:latest
container_name: context-machine-ollama
restart: unless-stopped
ports:
- "11434:11434"
volumes:
- ./infra/ollama:/root/.ollama
networks:
- context-machine-network
postgres:
container_name: context-machine-postgres
hostname: postgres
image: timescale/timescaledb:latest-pg14
ports:
- "5432:5432"
env_file:
- .env.local
volumes:
- ./infra/postgres/data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB || exit 1"]
interval: 2s
timeout: 3s
retries: 60
start_period: 10s
networks:
- context-machine-network
backend:
image: context-machine-backend:latest
container_name: context-machine-backend
restart: unless-stopped
ports:
- "3006:3006"
env_file:
- .env.local
volumes:
- ./services/backend/src:/app/src
depends_on:
- postgres
- websocket-service
networks:
- context-machine-network
command: ["python", "-u", "src/app.py"]
frontend:
image: context-machine-frontend:latest
container_name: context-machine-frontend
restart: unless-stopped
ports:
- "5173:5173"
env_file:
- .env.local
environment:
- DOCKER_ENV=true
volumes:
- ./services/frontend/src:/app/src
- ./services/frontend/public:/app/public
- ./services/frontend/.env.local:/app/.env.local
- ./services/frontend/vite.config.ts:/app/vite.config.ts
- ./services/frontend/package.json:/app/package.json
- /app/node_modules
depends_on:
- backend
networks:
- context-machine-network
command: ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
networks:
context-machine-network:
driver: bridge