openclaw: fix app container mount so CLI probes can connect to gateway

Remove :ro from the .openclaw volume so the CLI can write state files
on startup (it was crashing immediately with EROFS). Add
OPENCLAW_GATEWAY_TOKEN so the CLI bypasses the device identity
handshake when auth=none, allowing the gateway reachability probe to
succeed before the device is auto-approved.

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

View file

@ -38,13 +38,14 @@
volumes = [
"/var/openclaw/app:/app"
"/var/openclaw/gateway:/gateway"
"/root/.openclaw:/root/.openclaw:ro"
"/root/.openclaw:/root/.openclaw"
];
environment = {
PORT = "4310";
UI_BIND_ADDRESS = "127.0.0.1";
OPENCLAW_HOME = "/root/.openclaw";
OPENCLAW_BIN_PATH = "/gateway/node_modules/.bin/openclaw";
OPENCLAW_GATEWAY_TOKEN = "openclaw-local-dev";
};
command = [
"sh" "-c"