-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
93 lines (87 loc) · 2.32 KB
/
docker-compose.yml
File metadata and controls
93 lines (87 loc) · 2.32 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
services:
# ============================================
# DATABASES
# ============================================
postgres:
image: timescale/timescaledb:latest-pg16
ports:
- "5432:5432"
environment:
POSTGRES_USER: bench
POSTGRES_PASSWORD: bench
POSTGRES_DB: benchmark
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U bench -d benchmark"]
interval: 5s
timeout: 5s
retries: 5
mem_limit: 512m
memswap_limit: 512m
kurrentdb:
image: docker.kurrent.io/kurrent-latest/kurrentdb:latest
ports:
- "2113:2113"
environment:
KURRENTDB_CLUSTER_SIZE: 1
KURRENTDB_RUN_PROJECTIONS: All
KURRENTDB_START_STANDARD_PROJECTIONS: "true"
KURRENTDB_INSECURE: "true"
KURRENTDB_ENABLE_ATOM_PUB_OVER_HTTP: "true"
# Limit memory usage
KURRENTDB_MEM_DB: "false"
KURRENTDB_CHUNK_SIZE: 1048576
volumes:
- kurrentdb_data:/var/lib/kurrentdb
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:2113/health/live"]
interval: 5s
timeout: 5s
retries: 10
mem_limit: 1g
memswap_limit: 1g
# ============================================
# MCP SERVERS (Model Context Protocol)
# ============================================
mcp-postgres:
build:
context: ./docker/mcp-postgres
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
MCP_PORT: 3000
DATABASE_URL: postgresql://bench:bench@postgres:5432/benchmark
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 5s
timeout: 5s
retries: 5
mem_limit: 256m
memswap_limit: 256m
mcp-kurrentdb:
build:
context: ./docker/mcp-kurrentdb
dockerfile: Dockerfile
ports:
- "3003:3003"
environment:
MCP_PORT: 3003
KURRENTDB_CONNECTION_STRING: esdb://admin:changeit@kurrentdb:2113?tls=false
depends_on:
kurrentdb:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3003/health"]
interval: 5s
timeout: 5s
retries: 5
mem_limit: 256m
memswap_limit: 256m
volumes:
postgres_data:
kurrentdb_data: