Files
2026-05-16 19:24:30 -05:00

40 lines
1.2 KiB
YAML

version: "3.3"
services:
openclaw-gateway:
image: "${OPENCLAW_IMAGE:-ghcr.io/openclaw/openclaw:latest}"
container_name: live-openclaw
restart: unless-stopped
init: true
environment:
HOME: /home/node
TERM: xterm-256color
OPENCLAW_GATEWAY_TOKEN: "${OPENCLAW_GATEWAY_TOKEN:-12345678}"
OPENCLAW_ALLOW_INSECURE_PRIVATE_WS: "${OPENCLAW_ALLOW_INSECURE_PRIVATE_WS:-1}"
TZ: "${OPENCLAW_TZ:-UTC}"
volumes:
- "${OPENCLAW_CONFIG_DIR:-/var/lib/live-openclaw/config}:/home/node/.openclaw"
- "${OPENCLAW_WORKSPACE_DIR:-/var/lib/live-openclaw/workspace}:/home/node/.openclaw/workspace"
ports:
- "${OPENCLAW_GATEWAY_PORT:-18789}:18789"
- "${OPENCLAW_BRIDGE_PORT:-18790}:18790"
command:
- node
- dist/index.js
- gateway
- --allow-unconfigured
- --bind
- "${OPENCLAW_GATEWAY_BIND:-lan}"
- --port
- "18789"
healthcheck:
test:
- CMD
- node
- -e
- fetch('http://127.0.0.1:18789/healthz').then((r)=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))
interval: 30s
timeout: 5s
retries: 5
start_period: 20s