-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
259 lines (247 loc) · 8.29 KB
/
Copy pathdocker-compose.yml
File metadata and controls
259 lines (247 loc) · 8.29 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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
x-common-env: &common-env
env_file: .env
volumes:
mysql-data:
es-data:
falkordb-data:
langfuse-db-data:
litellm-data:
networks:
chronos-net:
driver: bridge
services:
# ── MySQL (OpenMetadata backend) ────────────────────────────────────────────
mysql:
image: mysql:8.0
container_name: chronos-mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:?Set MYSQL_ROOT_PASSWORD in .env}
MYSQL_DATABASE: openmetadata_db
MYSQL_USER: openmetadata_user
MYSQL_PASSWORD: ${MYSQL_ROOT_PASSWORD}
ports:
- "127.0.0.1:3306:3306"
volumes:
- mysql-data:/var/lib/mysql
networks:
- chronos-net
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h localhost -u root -p${MYSQL_ROOT_PASSWORD}"]
interval: 15s
timeout: 10s
retries: 10
start_period: 30s
# ── Elasticsearch ───────────────────────────────────────────────────────────
elasticsearch:
image: elasticsearch:8.15.0
container_name: chronos-elasticsearch
restart: unless-stopped
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms1g -Xmx1g
- bootstrap.memory_lock=true
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "127.0.0.1:9200:9200"
volumes:
- es-data:/usr/share/elasticsearch/data
networks:
- chronos-net
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:9200/_cluster/health || exit 1"]
interval: 15s
timeout: 10s
retries: 10
start_period: 60s
# ── OpenMetadata Server ─────────────────────────────────────────────────────
openmetadata-server:
image: openmetadata/server:1.3.0-release
container_name: chronos-openmetadata
restart: unless-stopped
<<: *common-env
environment:
- DB_HOST=mysql
- DB_PORT=3306
- DB_USER=openmetadata_user
- DB_USER_PASSWORD=${MYSQL_ROOT_PASSWORD}
- DB_SCHEME=mysql+pymysql
- OM_DATABASE=openmetadata_db
- ELASTICSEARCH_HOST=elasticsearch
- ELASTICSEARCH_PORT=9200
- ELASTICSEARCH_SCHEME=http
- SERVER_HOST_API_URL=http://openmetadata-server:8585
- AUTHENTICATION_PROVIDER=no-auth
ports:
- "127.0.0.1:8585:8585"
- "127.0.0.1:8586:8586"
depends_on:
mysql:
condition: service_healthy
elasticsearch:
condition: service_healthy
networks:
- chronos-net
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8585/api/v1/system/status || exit 1"]
interval: 30s
timeout: 15s
retries: 15
start_period: 120s
# ── FalkorDB (Graph DB for Graphiti) ────────────────────────────────────────
falkordb:
image: falkordb/falkordb:latest
container_name: chronos-falkordb
restart: unless-stopped
ports:
- "127.0.0.1:6379:6379"
- "127.0.0.1:3001:3001"
volumes:
- falkordb-data:/data
networks:
- chronos-net
healthcheck:
test: ["CMD", "redis-cli", "-p", "6379", "ping"]
interval: 10s
timeout: 5s
retries: 10
start_period: 15s
# ── Graphiti MCP Server ─────────────────────────────────────────────────────
graphiti-mcp:
build:
context: graphiti-mcp/
dockerfile: Dockerfile
container_name: chronos-graphiti-mcp
restart: unless-stopped
<<: *common-env
environment:
- FALKORDB_HOST=falkordb
- FALKORDB_PORT=6379
ports:
- "127.0.0.1:8200:8200"
depends_on:
falkordb:
condition: service_healthy
networks:
- chronos-net
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8200/health || exit 1"]
interval: 15s
timeout: 10s
retries: 10
start_period: 30s
# ── LiteLLM Proxy ───────────────────────────────────────────────────────────
litellm-proxy:
image: ghcr.io/berriai/litellm:main-latest
container_name: chronos-litellm
restart: unless-stopped
<<: *common-env
volumes:
- ./chronos/config/litellm_config.yaml:/app/config.yaml:ro
- litellm-data:/app/data
command: ["--config", "/app/config.yaml", "--port", "4000", "--num_workers", "4"]
ports:
- "127.0.0.1:4000:4000"
networks:
- chronos-net
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4000/health || exit 1"]
interval: 15s
timeout: 10s
retries: 10
start_period: 30s
# ── Langfuse DB (Postgres) ───────────────────────────────────────────────────
langfuse-db:
image: postgres:16
container_name: chronos-langfuse-db
restart: unless-stopped
environment:
POSTGRES_USER: langfuse
POSTGRES_PASSWORD: ${LANGFUSE_DB_PASSWORD:?Set LANGFUSE_DB_PASSWORD in .env}
POSTGRES_DB: langfuse
ports:
- "127.0.0.1:5433:5432"
volumes:
- langfuse-db-data:/var/lib/postgresql/data
networks:
- chronos-net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U langfuse -d langfuse"]
interval: 10s
timeout: 5s
retries: 10
start_period: 15s
# ── Langfuse ─────────────────────────────────────────────────────────────────
langfuse:
image: langfuse/langfuse:latest
container_name: chronos-langfuse
restart: unless-stopped
environment:
- DATABASE_URL=postgresql://langfuse:${LANGFUSE_DB_PASSWORD}@langfuse-db:5432/langfuse
- NEXTAUTH_URL=http://localhost:3002
- NEXTAUTH_SECRET=${LANGFUSE_NEXTAUTH_SECRET:?Set LANGFUSE_NEXTAUTH_SECRET in .env}
- SALT=${LANGFUSE_SALT:?Set LANGFUSE_SALT in .env}
- LANGFUSE_ENABLE_EXPERIMENTAL_FEATURES=true
ports:
- "127.0.0.1:3002:3000"
depends_on:
langfuse-db:
condition: service_healthy
networks:
- chronos-net
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:3000/api/public/health || exit 1"]
interval: 15s
timeout: 10s
retries: 10
start_period: 60s
# ── CHRONOS Server ──────────────────────────────────────────────────────────
chronos-server:
build:
context: .
dockerfile: Dockerfile
container_name: chronos-server
restart: unless-stopped
<<: *common-env
ports:
- "127.0.0.1:8100:8100"
depends_on:
openmetadata-server:
condition: service_healthy
falkordb:
condition: service_healthy
graphiti-mcp:
condition: service_healthy
litellm-proxy:
condition: service_healthy
langfuse:
condition: service_healthy
networks:
- chronos-net
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8100/api/v1/health || exit 1"]
interval: 15s
timeout: 10s
retries: 10
start_period: 30s
# ── CHRONOS Frontend ────────────────────────────────────────────────────────
chronos-frontend:
build:
context: chronos-frontend/
# VITE_API_URL is baked into the Vite bundle at build time.
# Use the host-published port so browser requests resolve correctly.
args:
VITE_API_URL: http://localhost:8100
container_name: chronos-frontend
restart: unless-stopped
ports:
- "3000:3000"
depends_on:
chronos-server:
condition: service_healthy
networks:
- chronos-net