ckb/.agents/modules/mcp/server/compose.example.yaml
Michał Kopeć bbfda5a65d Sync: local changes as of 2026-10-29T13:50:12Z
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-29 14:50:12 +01:00

37 lines
1.5 KiB
YAML

# Copy next to your reverse proxy config, adjust, and `docker compose up -d`.
# The proxy terminates TLS and forwards each public hostname to its service.
#
# One service per knowledge base: each has its own clone, .env, auth and
# connector URL, so Claude can hold one connector per KB side by side.
# Add a KB by copying a service block with a new port, env file and volume.
x-ckb-mcp: &ckb-mcp
build: .
restart: unless-stopped
services:
kb-alpha:
<<: *ckb-mcp
env_file: alpha.env # CKB_REPO_URL, CKB_MCP_PUBLIC_URL=https://kb-alpha.example.com, auth ...
ports:
- "127.0.0.1:8765:8765" # loopback only: the proxy is the public side
volumes:
- alpha:/kb # the server's own clone; it pulls and pushes
# Per-person/agent tokens: mount the file read-only and set CKB_MCP_TOKENS_FILE.
# - ./alpha-tokens.json:/run/secrets/ckb-tokens.json:ro
# Deploy key for an SSH CKB_REPO_URL (recommended over a token in the URL).
# The host file must exist: if it is missing, Docker mounts an empty directory
# instead (the entrypoint then stops and says so). Drop this line for an HTTPS URL.
- ./alpha_deploy_key:/run/secrets/ckb-deploy-key:ro
kb-beta:
<<: *ckb-mcp
env_file: beta.env # CKB_MCP_PUBLIC_URL=https://kb-beta.example.com ...
ports:
- "127.0.0.1:8766:8765"
volumes:
- beta:/kb
- ./beta_deploy_key:/run/secrets/ckb-deploy-key:ro
volumes:
alpha:
beta: