This commit is contained in:
Suksham 2026-01-29 19:48:23 +00:00 committed by GitHub
commit 652790d866
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,7 @@ services:
image: ${CLAWDBOT_IMAGE:-moltbot:local} image: ${CLAWDBOT_IMAGE:-moltbot:local}
environment: environment:
HOME: /home/node HOME: /home/node
MOLTBOT_STATE_DIR: /home/node/.clawdbot
TERM: xterm-256color TERM: xterm-256color
CLAWDBOT_GATEWAY_TOKEN: ${CLAWDBOT_GATEWAY_TOKEN} CLAWDBOT_GATEWAY_TOKEN: ${CLAWDBOT_GATEWAY_TOKEN}
CLAUDE_AI_SESSION_KEY: ${CLAUDE_AI_SESSION_KEY} CLAUDE_AI_SESSION_KEY: ${CLAUDE_AI_SESSION_KEY}
@ -31,6 +32,7 @@ services:
image: ${CLAWDBOT_IMAGE:-moltbot:local} image: ${CLAWDBOT_IMAGE:-moltbot:local}
environment: environment:
HOME: /home/node HOME: /home/node
MOLTBOT_STATE_DIR: /home/node/.clawdbot
TERM: xterm-256color TERM: xterm-256color
BROWSER: echo BROWSER: echo
CLAUDE_AI_SESSION_KEY: ${CLAUDE_AI_SESSION_KEY} CLAUDE_AI_SESSION_KEY: ${CLAUDE_AI_SESSION_KEY}

View File

@ -26,6 +26,10 @@ mkdir -p "${CLAWDBOT_WORKSPACE_DIR:-$HOME/clawd}"
export CLAWDBOT_CONFIG_DIR="${CLAWDBOT_CONFIG_DIR:-$HOME/.clawdbot}" export CLAWDBOT_CONFIG_DIR="${CLAWDBOT_CONFIG_DIR:-$HOME/.clawdbot}"
export CLAWDBOT_WORKSPACE_DIR="${CLAWDBOT_WORKSPACE_DIR:-$HOME/clawd}" export CLAWDBOT_WORKSPACE_DIR="${CLAWDBOT_WORKSPACE_DIR:-$HOME/clawd}"
# Set ownership to container user (uid 1000) so the container can write to mounted volumes
chown -R 1000:1000 "$CLAWDBOT_CONFIG_DIR" 2>/dev/null || true
chown -R 1000:1000 "$CLAWDBOT_WORKSPACE_DIR" 2>/dev/null || true
export CLAWDBOT_GATEWAY_PORT="${CLAWDBOT_GATEWAY_PORT:-18789}" export CLAWDBOT_GATEWAY_PORT="${CLAWDBOT_GATEWAY_PORT:-18789}"
export CLAWDBOT_BRIDGE_PORT="${CLAWDBOT_BRIDGE_PORT:-18790}" export CLAWDBOT_BRIDGE_PORT="${CLAWDBOT_BRIDGE_PORT:-18790}"
export CLAWDBOT_GATEWAY_BIND="${CLAWDBOT_GATEWAY_BIND:-lan}" export CLAWDBOT_GATEWAY_BIND="${CLAWDBOT_GATEWAY_BIND:-lan}"