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-30 03:15:10 +01:00
openclaw-gateway:
image: ${OPENCLAW_IMAGE:-openclaw:local}
2026-01-02 13:52:08 +02:00
environment:
HOME: /home/node
TERM: xterm-256color
2026-01-30 03:15:10 +01:00
OPENCLAW_GATEWAY_TOKEN: ${OPENCLAW_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-30 03:15:10 +01:00
- ${OPENCLAW_CONFIG_DIR}:/home/node/.openclaw
- ${OPENCLAW_WORKSPACE_DIR}:/home/node/.openclaw/workspace
2026-01-02 13:52:08 +02:00
ports:
2026-01-30 03:15:10 +01:00
- "${OPENCLAW_GATEWAY_PORT:-18789}:18789"
- "${OPENCLAW_BRIDGE_PORT:-18790}:18790"
2026-01-02 13:52:08 +02:00
init: true
restart: unless-stopped
command:
[
"node",
"dist/index.mjs",
2026-01-24 03:24:28 +00:00
"gateway",
2026-01-02 13:52:08 +02:00
"--bind",
2026-01-30 03:15:10 +01:00
"${OPENCLAW_GATEWAY_BIND:-lan}",
2026-01-02 13:52:08 +02:00
"--port",
2026-01-30 03:15:10 +01:00
"${OPENCLAW_GATEWAY_PORT:-18789}"
2026-01-02 13:52:08 +02:00
]
2026-01-30 03:15:10 +01:00
openclaw-cli:
image: ${OPENCLAW_IMAGE:-openclaw: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-30 03:15:10 +01:00
- ${OPENCLAW_CONFIG_DIR}:/home/node/.openclaw
- ${OPENCLAW_WORKSPACE_DIR}:/home/node/.openclaw/workspace
2026-01-02 13:52:08 +02:00
stdin_open: true
tty: true
init: true
entrypoint: ["node", "dist/index.mjs"]