Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (56 loc) · 2.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (56 loc) · 2.04 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
services:
gitlab-mcp-server:
# Pin VERSION to a specific release (e.g., 1.7.7) in production; avoid :latest
image: ${DOCKER_REGISTRY:-ghcr.io/jmrplens/gitlab-mcp-server}:${VERSION:-latest}
pull_policy: always
ports:
- "8080:8080"
environment:
- GITLAB_URL=${GITLAB_URL:-}
- GITLAB_MCP_SKIP_TLS_VERIFY=${GITLAB_MCP_SKIP_TLS_VERIFY:-false}
- GITLAB_MCP_TOOL_SURFACE=${GITLAB_MCP_TOOL_SURFACE:-dynamic}
- GITLAB_MCP_TIER=${GITLAB_MCP_TIER:-}
- GITLAB_MCP_READ_ONLY=${GITLAB_MCP_READ_ONLY:-false}
- GITLAB_MCP_SAFE_MODE=${GITLAB_MCP_SAFE_MODE:-false}
- GITLAB_MCP_LOG_LEVEL=${GITLAB_MCP_LOG_LEVEL:-info}
command:
- "--http"
- "--http-addr=0.0.0.0:8080"
# Required: a deployment naming no instance would make requests to
# whatever host a caller puts in GITLAB-URL, with that caller's token,
# so the server refuses to start. Set GITLAB_URL in .env, or list
# several comma-separated and let the GITLAB-URL header select among them.
- "--gitlab-url=${GITLAB_URL:?set GITLAB_URL in .env: the server refuses to start without an instance allow-list}"
- "--tool-surface=${GITLAB_MCP_TOOL_SURFACE:-dynamic}"
- "--tier=${GITLAB_MCP_TIER:-}"
- "--skip-tls-verify=${GITLAB_MCP_SKIP_TLS_VERIFY:-false}"
- "--read-only=${GITLAB_MCP_READ_ONLY:-false}"
- "--safe-mode=${GITLAB_MCP_SAFE_MODE:-false}"
deploy:
resources:
limits:
cpus: "2.0"
memory: 512M
reservations:
cpus: "0.25"
memory: 64M
restart: unless-stopped
# Security hardening (least privilege, OWASP Docker security)
read_only: true
tmpfs:
- /tmp:rw,size=64m,mode=1777
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"