Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (47 loc) · 2.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (47 loc) · 2.01 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
services:
ruprogress-mcp:
build: .
image: ruprogress-mcp:dev
ports:
# Loopback-only publication: the container binds 0.0.0.0 inside its
# own network namespace by necessity (that's what
# REDMINE_MCP_ALLOW_UNAUTHENTICATED_NETWORK below accepts), but this
# mapping is what actually limits reach from the host. Remove it (and
# put an authenticating proxy in front) to expose beyond localhost.
- "127.0.0.1:8000:8000"
environment:
REDMINE_URL: https://redmine.example.com
REDMINE_API_KEY: ${REDMINE_API_KEY}
# Required: the image already sets SERVER_HOST=0.0.0.0, and a
# non-loopback bind with no PUBLIC_HOST is a startup error — see
# docs/configuration.md#exposing-the-server-on-a-network.
PUBLIC_HOST: ${PUBLIC_HOST:-localhost}
# Required in legacy auth mode: attests that the operator accepts a
# non-loopback bind under a single shared API key. The loopback port
# publication above is the real control on reach.
REDMINE_MCP_ALLOW_UNAUTHENTICATED_NETWORK: "true"
# Rate limiting defaults — uncomment to override.
# REDMINE_MCP_RATE_LIMIT_ENABLED: "true"
# REDMINE_MCP_RATE_LIMIT_RPS: "10"
# REDMINE_MCP_RATE_LIMIT_BURST: "40"
# REDMINE_MCP_RATE_LIMIT_AUTH_RPS: "1"
# REDMINE_MCP_RATE_LIMIT_AUTH_BURST: "10"
# REDMINE_MCP_RATE_LIMIT_MAX_KEYS: "10000"
volumes:
- attachments:/var/lib/ruprogress-mcp/attachments
read_only: true
cap_drop: [ALL]
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "/usr/local/bin/ruprogress-mcp", "--healthcheck"]
interval: 30s
timeout: 3s
start_period: 5s
retries: 3
# `/livez` (the image's own HEALTHCHECK) only proves the process is
# alive, never Redmine — an orchestrator readiness probe should point at
# GET /readyz instead, which does check Redmine and is deliberately kept
# out of the container-level HEALTHCHECK (see Dockerfile).
volumes:
attachments: