openclaw/docker-compose.yml
Jiaxin Shui 50512b97e8 adapt to feishu and add proxy
Signed-off-by: Jiaxin Shui <shuijx@xiaopeng.com>
2026-01-28 09:19:48 +08:00

58 lines
1.8 KiB
YAML

services:
clawdbot-gateway:
image: ${CLAWDBOT_IMAGE:-clawdbot:local}
environment:
HOME: /home/node
TERM: xterm-256color
CLAWDBOT_GATEWAY_TOKEN: ${CLAWDBOT_GATEWAY_TOKEN}
CLAWDBOT_GATEWAY_PASSWORD: ${CLAWDBOT_GATEWAY_PASSWORD}
CLAUDE_AI_SESSION_KEY: ${CLAUDE_AI_SESSION_KEY}
CLAUDE_WEB_SESSION_KEY: ${CLAUDE_WEB_SESSION_KEY}
CLAUDE_WEB_COOKIE: ${CLAUDE_WEB_COOKIE}
HTTP_PROXY: ${CLAWDBOT_PROXY_URL}
HTTPS_PROXY: ${CLAWDBOT_PROXY_URL}
ALL_PROXY: ${CLAWDBOT_PROXY_URL}
NO_PROXY: ${CLAWDBOT_NO_PROXY}
volumes:
- ${CLAWDBOT_CONFIG_DIR}:/home/node/.clawdbot
- ${CLAWDBOT_WORKSPACE_DIR}:/home/node/clawd
ports:
- "${CLAWDBOT_GATEWAY_PORT:-18789}:18789"
- "${CLAWDBOT_BRIDGE_PORT:-18790}:18790"
init: true
restart: unless-stopped
command:
[
"node",
"dist/index.js",
"gateway",
"--bind",
"${CLAWDBOT_GATEWAY_BIND:-lan}",
"--port",
"${CLAWDBOT_GATEWAY_PORT:-18789}",
"--auth",
"password"
]
clawdbot-cli:
image: ${CLAWDBOT_IMAGE:-clawdbot:local}
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}
CLAWDBOT_GATEWAY_PASSWORD: ${CLAWDBOT_GATEWAY_PASSWORD}
CLAUDE_WEB_COOKIE: ${CLAUDE_WEB_COOKIE}
HTTP_PROXY: ${CLAWDBOT_PROXY_URL}
HTTPS_PROXY: ${CLAWDBOT_PROXY_URL}
ALL_PROXY: ${CLAWDBOT_PROXY_URL}
NO_PROXY: ${CLAWDBOT_NO_PROXY}
volumes:
- ${CLAWDBOT_CONFIG_DIR}:/home/node/.clawdbot
- ${CLAWDBOT_WORKSPACE_DIR}:/home/node/clawd
stdin_open: true
tty: true
init: true
entrypoint: ["node", "dist/index.js"]