From 81be665cc417cf209ee83c7ff885b4a1868d1379 Mon Sep 17 00:00:00 2001 From: AlexMa233 Date: Thu, 12 Feb 2026 16:46:45 +0800 Subject: [PATCH] docs: fix manual deployment Use steps in deploy.sh to replace wrong steps. --- DEPLOYMENT.md | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md index 6b57052b..62abe91c 100644 --- a/DEPLOYMENT.md +++ b/DEPLOYMENT.md @@ -35,19 +35,36 @@ Default admin credentials: If you prefer not to use the automated script: ```bash -# 1. Create configuration file +# 1. Create the configuration file cp docker/config/config.docker.toml config.toml -# 2. Edit configuration (Important!) +# 2. Edit the configuration (recommended to review key options) nano config.toml -# 3. Build MCP image -docker build -f docker/Dockerfile.mcp -t memoh-mcp:latest . +# 3. Prepare data_root on the host +export MEMOH_DATA_ROOT="$(pwd)/.data/memoh" +mkdir -p "$MEMOH_DATA_ROOT" -# 4. Start services +# 4. Update data_root in config.toml to the absolute host path +# If it does not exist, add the following line manually: +# data_root = "/absolute/path/to/.data/memoh" +awk -v path="$MEMOH_DATA_ROOT" ' + $0 ~ /^data_root[[:space:]]*=/ { print "data_root = \"" path "\""; next } + { print } +' config.toml > config.toml.tmp && mv config.toml.tmp config.toml + +# 5. Prepare containerd / nerdctl environment +# Only for Debian-based distributions! +sh scripts/containerd-install.sh || true + +# 6. Build the MCP image on the host using nerdctl + buildkit +# This step requires nerdctl, buildctl, and buildkitd to be available +nerdctl build -f docker/Dockerfile.mcp -t docker.io/library/memoh-mcp:latest . + +# 7. Start all services docker compose up -d -# 5. View logs +# 8. View logs docker compose logs -f ```