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:
parent
2971282c45
commit
aee8dbda75
1 changed files with 2 additions and 0 deletions
|
|
@ -37,12 +37,14 @@
|
|||
network_mode = "host";
|
||||
volumes = [
|
||||
"/var/openclaw/app:/app"
|
||||
"/var/openclaw/gateway:/gateway"
|
||||
"/root/.openclaw:/root/.openclaw:ro"
|
||||
];
|
||||
environment = {
|
||||
PORT = "4310";
|
||||
UI_BIND_ADDRESS = "127.0.0.1";
|
||||
OPENCLAW_HOME = "/root/.openclaw";
|
||||
OPENCLAW_BIN_PATH = "/gateway/node_modules/.bin/openclaw";
|
||||
};
|
||||
command = [
|
||||
"sh" "-c"
|
||||
|
|
|
|||
Loading…
Reference in a new issue