forked from arabold/docs-mcp-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.production.yml
More file actions
72 lines (71 loc) · 1.88 KB
/
docker-compose.production.yml
File metadata and controls
72 lines (71 loc) · 1.88 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
# Docker Compose configuration for internet-facing production deployment.
#
# Exposes MCP endpoints (/sse, /mcp) and tRPC API (/api) with JWT auth.
# Does NOT expose the Web UI — no /web/* routes, no static assets.
#
# Services:
# - worker: Internal only, processes documentation jobs (no ports exposed to host)
# - mcp: Public-facing, serves MCP + API with authentication
#
# Usage:
# cp .env.production.example .env
# # Edit .env with your real values
# docker compose -f docker-compose.production.yml up -d
#
services:
# Worker service - handles documentation processing (internal only)
worker:
image: ghcr.io/arabold/docs-mcp-server:latest
build:
context: .
dockerfile: Dockerfile
command: ["worker", "--host", "0.0.0.0", "--port", "8080"]
restart: unless-stopped
# No 'ports:' — internal only, not accessible from internet
env_file:
- .env
healthcheck:
test: 'node -e ''require("net").connect(8080, "127.0.0.1").on("connect",()=>process.exit(0)).on("error",()=>process.exit(1))'''
interval: 5s
timeout: 3s
retries: 10
start_period: 10s
deploy:
resources:
limits:
memory: 2G
reservations:
memory: 1G
# MCP + API server - public-facing with authentication
mcp:
image: ghcr.io/arabold/docs-mcp-server:latest
build:
context: .
dockerfile: Dockerfile
command:
- "mcp"
- "--protocol"
- "http"
- "--host"
- "0.0.0.0"
- "--port"
- "6280"
- "--server-url"
- "http://worker:8080/api"
- "--enable-api"
- "--auth-enabled"
- "--no-logo"
restart: unless-stopped
ports:
- "6280:6280"
env_file:
- .env
depends_on:
worker:
condition: service_healthy
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 256M