- src/infra/state-migrations.ts: Handle EBUSY errors on rename (Docker bind mount safe) - Dockerfile: Add global CLI symlink and fix volume permissions - docker-compose.yml: Use named volumes for isolation and explicit entrypoints
36 lines
955 B
YAML
36 lines
955 B
YAML
services:
|
|
moltbot-gateway:
|
|
container_name: moltbot
|
|
image: ${CLAWDBOT_IMAGE:-moltbot:local}
|
|
environment:
|
|
HOME: /home/node
|
|
MOLTBOT_STATE_DIR: /var/lib/moltbot
|
|
TERM: xterm-256color
|
|
CLAWDBOT_GATEWAY_TOKEN: ${CLAWDBOT_GATEWAY_TOKEN}
|
|
CLAUDE_AI_SESSION_KEY: ${CLAUDE_AI_SESSION_KEY}
|
|
CLAUDE_WEB_SESSION_KEY: ${CLAUDE_WEB_SESSION_KEY}
|
|
CLAUDE_WEB_COOKIE: ${CLAUDE_WEB_COOKIE}
|
|
volumes:
|
|
- moltbot_data:/var/lib/moltbot
|
|
- moltbot_workspace:/home/node/clawd
|
|
ports:
|
|
- "${CLAWDBOT_GATEWAY_PORT:-18789}:18789"
|
|
- "${CLAWDBOT_BRIDGE_PORT:-18790}:18790"
|
|
init: true
|
|
restart: unless-stopped
|
|
command:
|
|
[
|
|
"node",
|
|
"/app/moltbot.mjs",
|
|
"gateway",
|
|
"--bind",
|
|
"${CLAWDBOT_GATEWAY_BIND:-lan}",
|
|
"--port",
|
|
"${CLAWDBOT_GATEWAY_PORT:-18789}",
|
|
"--allow-unconfigured"
|
|
]
|
|
|
|
volumes:
|
|
moltbot_data:
|
|
moltbot_workspace:
|