-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.hub.yml
More file actions
70 lines (66 loc) · 2 KB
/
docker-compose.hub.yml
File metadata and controls
70 lines (66 loc) · 2 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
# Local MCP Gateway - Docker Compose for Docker Hub
#
# Quick Start:
# curl -fsSL https://raw.githubusercontent.com/DXHeroes/local-mcp-gateway/main/docker-compose.hub.yml -o local-mcp-gateway.yml && docker compose -f local-mcp-gateway.yml up -d
#
# Access:
# - UI: http://localhost:9630
# - MCP Endpoint: http://localhost:9631/api/mcp/default
#
# Data is stored in the pgdata Docker volume.
services:
postgres:
image: postgres:17-alpine
container_name: local-mcp-postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: local_mcp_gateway
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
backend:
image: dxheroes/local-mcp-gateway-backend:latest
container_name: local-mcp-backend
ports:
- "9631:3001"
environment:
- NODE_ENV=production
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/local_mcp_gateway
- LOG_LEVEL=log
- CORS_ORIGINS=http://localhost:9630,http://localhost:3000,http://localhost:5173
- BETTER_AUTH_URL=http://localhost:9631
- FRONTEND_URL=http://localhost:9630
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3001/api/health"]
interval: 10s
timeout: 10s
retries: 3
start_period: 10s
frontend:
image: dxheroes/local-mcp-gateway-frontend:latest
container_name: local-mcp-frontend
ports:
- "9630:80"
environment:
- NGINX_ENTRYPOINT_QUIET_LOGS=1
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80/health"]
interval: 10s
timeout: 10s
retries: 3
volumes:
pgdata: