Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (77 loc) · 1.94 KB
/
Copy pathdocker-compose.yml
File metadata and controls
80 lines (77 loc) · 1.94 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
version: '3.8'
services:
mcp-python:
build:
context: ./python
dockerfile: Dockerfile
ports:
- "8080:8080"
- "8081:8081" # Metrics port
environment:
- ALLOWED_DIR=/data
- LOG_LEVEL=info
- MCP_SERVER_NAME=Python FastAPI MCP
- MCP_SERVER_VERSION=1.0.0
- DEBUG=false
- METRICS_PORT=8081
volumes:
- ./python/data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
mcp-go:
image: ghcr.io/centralmind/gateway:v0.2.14
ports:
- "9090:9090"
- "9091:9091" # Metrics port
environment:
- LOG_LEVEL=info
- DEBUG=false
- MCP_SERVER_NAME=Go MCP Server
- MCP_SERVER_VERSION=1.0.0
command: start --connection-string "postgres://demo:demo@db:5432/demo?sslmode=disable"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9090/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
depends_on:
- db
mcp-rust:
build:
context: ./rust
dockerfile: Dockerfile
command: ["tfmcp", "mcp", "--http"]
ports:
- "8082:8080"
- "8083:8081" # Metrics port
volumes:
- ./rust/config:/etc/tfmcp
- ./rust/data:/data
environment:
- LOG_LEVEL=info
- DEBUG=false
- MCP_SERVER_NAME=Rust Terraform MCP Server
- MCP_SERVER_VERSION=1.0.0
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8082/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
db:
image: postgres:15
environment:
POSTGRES_USER: demo
POSTGRES_PASSWORD: demo
POSTGRES_DB: demo
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
volumes:
db_data: