mirror of
https://github.com/Dasemu/remote-mcp-manager.git
synced 2026-11-26 15:26:27 +00:00
The Manager card now shows the commit SHA the image was built from (GIT_SHA build arg, passed by the panel's self-update and documented for compose) and counts the commits SELF_UPDATE_REF has beyond it, with their subjects and a "Check for updates" button. The check is a cached, background, history-only git fetch so GET /api/system never waits on it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
services:
|
|
manager:
|
|
build:
|
|
context: .
|
|
args:
|
|
# export GIT_SHA=$(git rev-parse HEAD) before `docker compose up -d --build` so the panel
|
|
# can show which commit is installed and how far behind the remote it is.
|
|
GIT_SHA: ${GIT_SHA:-unknown}
|
|
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
|