Files
openclaw/docker-compose.yml

46 lines
1.3 KiB
YAML
Raw Normal View History

2026-01-02 13:52:08 +02:00
services:
2026-01-04 14:32:47 +00:00
clawdbot-gateway:
image: ${CLAWDBOT_IMAGE:-clawdbot:local}
2026-01-02 13:52:08 +02:00
environment:
HOME: /home/node
TERM: xterm-256color
2026-01-04 14:32:47 +00:00
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}
2026-01-02 13:52:08 +02:00
volumes:
2026-01-04 14:32:47 +00:00
- ${CLAWDBOT_CONFIG_DIR}:/home/node/.clawdbot
- ${CLAWDBOT_WORKSPACE_DIR}:/home/node/clawd
2026-01-02 13:52:08 +02:00
ports:
2026-01-04 14:32:47 +00:00
- "${CLAWDBOT_GATEWAY_PORT:-18789}:18789"
- "${CLAWDBOT_BRIDGE_PORT:-18790}:18790"
2026-01-02 13:52:08 +02:00
init: true
restart: unless-stopped
command:
[
"node",
"dist/index.js",
2026-01-24 03:24:28 +00:00
"gateway",
2026-01-02 13:52:08 +02:00
"--bind",
2026-01-04 14:32:47 +00:00
"${CLAWDBOT_GATEWAY_BIND:-lan}",
2026-01-02 13:52:08 +02:00
"--port",
2026-01-04 14:32:47 +00:00
"${CLAWDBOT_GATEWAY_PORT:-18789}"
2026-01-02 13:52:08 +02:00
]
2026-01-04 14:32:47 +00:00
clawdbot-cli:
image: ${CLAWDBOT_IMAGE:-clawdbot:local}
2026-01-02 13:52:08 +02:00
environment:
HOME: /home/node
TERM: xterm-256color
BROWSER: echo
CLAUDE_AI_SESSION_KEY: ${CLAUDE_AI_SESSION_KEY}
CLAUDE_WEB_SESSION_KEY: ${CLAUDE_WEB_SESSION_KEY}
CLAUDE_WEB_COOKIE: ${CLAUDE_WEB_COOKIE}
2026-01-02 13:52:08 +02:00
volumes:
2026-01-04 14:32:47 +00:00
- ${CLAWDBOT_CONFIG_DIR}:/home/node/.clawdbot
- ${CLAWDBOT_WORKSPACE_DIR}:/home/node/clawd
2026-01-02 13:52:08 +02:00
stdin_open: true
tty: true
init: true
2026-01-02 13:52:08 +02:00
entrypoint: ["node", "dist/index.js"]