Files
remote-mcp-manager/docker-compose.yml
T
dasemuandClaude Sonnet 5.5 4b3c8f213a feat: add a panel button to update the manager itself
The manager clones SELF_UPDATE_REPO_URL, builds a new image in the shared build queue and
hands over to a short-lived updater container (new image) that swaps the manager container,
health-checks it and rolls back on failure. Exposed as GET/POST /api/system behind requireAuth;
installation changes answer 409 while an update runs. Session cookie is now SameSite=Lax.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-19 05:45:25 +02:00

36 lines
1.2 KiB
YAML

services:
manager:
build: .
restart: unless-stopped
ports:
- "127.0.0.1:3000:3000"
environment:
PORT: 3000
DOCKER_SOCKET_PATH: /var/run/docker.sock
MCP_NETWORK_NAME: mcp-net
DATA_DIR: /repo/data
PUBLIC_BASE_URL: ${PUBLIC_BASE_URL}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
SESSION_SECRET: ${SESSION_SECRET}
MASTER_KEY: ${MASTER_KEY}
CONTAINER_MEMORY_MB: ${CONTAINER_MEMORY_MB:-512}
CONTAINER_CPUS: ${CONTAINER_CPUS:-1}
PROXY_TIMEOUT_MS: ${PROXY_TIMEOUT_MS:-300000}
MAX_PROXY_REQUESTS: ${MAX_PROXY_REQUESTS:-100}
MANAGER_MEMORY_LIMIT_MB: ${MANAGER_MEMORY_LIMIT_MB:-512}
SELF_UPDATE_REPO_URL: ${SELF_UPDATE_REPO_URL:-}
SELF_UPDATE_REF: ${SELF_UPDATE_REF:-master}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/repo/data
# Reuses the host's own SSH key/known_hosts so the manager can `git clone` private
# repos over ssh:// the same way the host itself already does. Read-only.
# SSH_DIR must be an absolute path (compose doesn't expand "~").
- ${SSH_DIR}:/root/.ssh:ro
networks:
- mcp-net
networks:
mcp-net:
name: mcp-net