-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (57 loc) · 1.69 KB
/
docker-compose.yml
File metadata and controls
67 lines (57 loc) · 1.69 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
version: '3.8'
services:
mcp-server:
build:
context: .
dockerfile: Dockerfile
image: mcp4openapi:latest
container_name: mcp4openapi
# Security hardening
read_only: true
security_opt:
- no-new-privileges:true
tmpfs:
- /tmp:size=64M
ports:
- "3003:3003"
environment:
# Profiles
- MCP4_HTTP_PROFILE_ROUTING=true
- MCP4_HTTP_PROFILE_INDEX=true
#- GITLAB_API_BASE_URL=
#- YOUTRACK_API_BASE_URL=
#- N8N_API_BASE_URL=
#- GRAFANA_API_BASE_URL=
#- SEMGREP_API_BASE_URL=
#- MATTERMOST_API_BASE_URL=
# Transport
- MCP4_TRANSPORT=http
- MCP4_HOST=0.0.0.0
- MCP4_PORT=3003
# Logging
- MCP4_LOG_LEVEL=${MCP4_LOG_LEVEL:-info}
- MCP4_LOG_FORMAT=${MCP4_LOG_FORMAT:-json}
# HTTP Transport (optional)
- MCP4_ALLOWED_ORIGINS=${MCP4_ALLOWED_ORIGINS:-http://localhost:*}
- MCP4_SESSION_TIMEOUT_MS=${MCP4_SESSION_TIMEOUT_MS:-1800000}
- MCP4_HEARTBEAT_ENABLED=${MCP4_HEARTBEAT_ENABLED:-false}
- MCP4_HEARTBEAT_INTERVAL_MS=${MCP4_HEARTBEAT_INTERVAL_MS:-30000}
# Metrics (optional)
- MCP4_METRICS_ENABLED=${MCP4_METRICS_ENABLED:-false}
- MCP4_METRICS_PATH=${MCP4_METRICS_PATH:-/metrics}
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3003/health"]
interval: 30s
timeout: 3s
start_period: 5s
retries: 3
# Resource limits (optional)
deploy:
resources:
limits:
cpus: '1'
memory: 512M
reservations:
cpus: '0.5'
memory: 256M