c3749daf48
Tests / test-windows (push) Waiting to run
Tests / test-macos (push) Waiting to run
Tests / test-linux (3.13) (push) Failing after 0s
Tests / test-linux (3.11) (push) Failing after 1s
Tests / lint (push) Failing after 0s
Tests / test-linux (3.9) (push) Failing after 1s
Docker / build (push) Failing after 1s
Docker / build-gpu (push) Failing after 2s
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
# MemPalace via Docker Compose.
|
|
#
|
|
# The MCP server speaks JSON-RPC over stdio, so the `mcp` service is meant to
|
|
# be driven interactively (`docker compose run`), not left running detached:
|
|
#
|
|
# docker compose build
|
|
# docker compose run --rm mcp # MCP server over stdio
|
|
# docker compose run --rm mcp cli search "GraphQL" # one-off CLI command
|
|
#
|
|
# The named volume `mempalace-data` is mounted at /data and holds the palace,
|
|
# config, and the cached embedding model across runs.
|
|
|
|
services:
|
|
mcp:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: mempalace:local
|
|
# stdio transport: keep STDIN open and allocate no TTY (raw JSON-RPC).
|
|
stdin_open: true
|
|
tty: false
|
|
volumes:
|
|
- mempalace-data:/data
|
|
environment:
|
|
# Everything defaults correctly from HOME=/data (palace ->
|
|
# /data/.mempalace/palace, config -> /data/.mempalace, model cache ->
|
|
# /data/.cache). Override here only for non-default locations, e.g.:
|
|
# - MEMPALACE_EMBEDDING_MODEL=embeddinggemma # multilingual (default: minilm)
|
|
# - MEMPALACE_PALACE_PATH=/data/custom/palace
|
|
|
|
volumes:
|
|
mempalace-data:
|