openclaw: mount gateway node_modules into control center for CLI access

Control center runs 'openclaw status --json' as a subprocess to probe
the gateway. Mount the gateway install volume and set OPENCLAW_BIN_PATH
so the control center can find the binary.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Philip Peterson 2026-06-14 03:45:28 -07:00
parent 2971282c45
commit aee8dbda75

View file

@ -37,12 +37,14 @@
network_mode = "host"; network_mode = "host";
volumes = [ volumes = [
"/var/openclaw/app:/app" "/var/openclaw/app:/app"
"/var/openclaw/gateway:/gateway"
"/root/.openclaw:/root/.openclaw:ro" "/root/.openclaw:/root/.openclaw:ro"
]; ];
environment = { environment = {
PORT = "4310"; PORT = "4310";
UI_BIND_ADDRESS = "127.0.0.1"; UI_BIND_ADDRESS = "127.0.0.1";
OPENCLAW_HOME = "/root/.openclaw"; OPENCLAW_HOME = "/root/.openclaw";
OPENCLAW_BIN_PATH = "/gateway/node_modules/.bin/openclaw";
}; };
command = [ command = [
"sh" "-c" "sh" "-c"