Files
docker-infrastructure/openclaw/docker-compose.yml
T
poprhythm d66fc86287 Add explicit --bind lan flag to OpenClaw gateway command
CLI flag takes precedence over env vars and config, ensuring
the gateway binds to LAN interface for nginx reverse proxy access.
2026-02-08 21:42:57 +00:00

29 lines
822 B
YAML

services:
openclaw:
container_name: openclaw
image: ghcr.io/openclaw/openclaw:main
restart: unless-stopped
command: ["node", "openclaw.mjs", "gateway", "--allow-unconfigured", "--bind", "lan"]
environment:
- HOME=/home/node
- TERM=xterm-256color
- TZ=America/New_York
- PUID=1000
- PGID=1000
- OPENCLAW_GATEWAY_TOKEN=${OPENCLAW_GATEWAY_TOKEN}
- OPENCLAW_GATEWAY_BIND=lan
# Reverse proxy configuration
- VIRTUAL_HOST=openclaw.kolpacksoftware.com
- VIRTUAL_PORT=18789
- LETSENCRYPT_HOST=openclaw.kolpacksoftware.com
volumes:
- /srv/openclaw/config:/home/node/.openclaw
- /srv/openclaw/workspace:/home/node/.openclaw/workspace
init: true
networks:
- npm-network
networks:
npm-network:
external: true