update 26.8.11
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
services:
|
||||
openclaw-gateway:
|
||||
image: ${OPENCLAW_IMAGE}
|
||||
container_name: openclaw-gateway
|
||||
|
||||
env_file:
|
||||
- .env
|
||||
@@ -11,31 +10,22 @@ services:
|
||||
OPENCLAW_HOME: /home/node
|
||||
TERM: xterm-256color
|
||||
|
||||
# Container-side paths should stay fixed.
|
||||
OPENCLAW_STATE_DIR: /home/node/.openclaw
|
||||
OPENCLAW_CONFIG_PATH: /home/node/.openclaw/openclaw.json
|
||||
OPENCLAW_CONFIG_DIR: /home/node/.openclaw
|
||||
OPENCLAW_WORKSPACE_DIR: /home/node/.openclaw/workspace
|
||||
|
||||
OPENCLAW_GATEWAY_TOKEN: ${OPENCLAW_GATEWAY_TOKEN}
|
||||
OPENCLAW_ALLOW_INSECURE_PRIVATE_WS: ${OPENCLAW_ALLOW_INSECURE_PRIVATE_WS:-}
|
||||
OPENCLAW_DISABLE_BONJOUR: ${OPENCLAW_DISABLE_BONJOUR:-1}
|
||||
|
||||
TZ: ${OPENCLAW_TZ:-Asia/Shanghai}
|
||||
|
||||
volumes:
|
||||
# Main OpenClaw persistent state
|
||||
- ${OPENCLAW_CONFIG_DIR}:/home/node/.openclaw
|
||||
|
||||
# Explicit workspace mount
|
||||
- ${OPENCLAW_WORKSPACE_DIR}:/home/node/.openclaw/workspace
|
||||
|
||||
# Auth/profile secrets
|
||||
- ${OPENCLAW_AUTH_PROFILE_SECRET_DIR}:/home/node/.config/openclaw
|
||||
- "${OPENCLAW_CONFIG_DIR}:/home/node/.openclaw"
|
||||
- "${OPENCLAW_WORKSPACE_DIR}:/home/node/.openclaw/workspace"
|
||||
- "${OPENCLAW_AUTH_PROFILE_SECRET_DIR}:/home/node/.config/openclaw"
|
||||
|
||||
ports:
|
||||
- "${OPENCLAW_GATEWAY_PORT:-2800}:18789"
|
||||
- "${OPENCLAW_BRIDGE_PORT:-2879}:18790"
|
||||
- "${OPENCLAW_BRIDGE_PORT:-18790}:18790"
|
||||
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
@@ -48,7 +38,6 @@ services:
|
||||
- no-new-privileges:true
|
||||
|
||||
init: true
|
||||
|
||||
restart: unless-stopped
|
||||
|
||||
command:
|
||||
@@ -77,13 +66,12 @@ services:
|
||||
|
||||
openclaw-cli:
|
||||
image: ${OPENCLAW_IMAGE}
|
||||
container_name: openclaw-cli
|
||||
|
||||
network_mode: "service:openclaw-gateway"
|
||||
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
network_mode: "service:openclaw-gateway"
|
||||
|
||||
environment:
|
||||
HOME: /home/node
|
||||
OPENCLAW_HOME: /home/node
|
||||
@@ -95,15 +83,13 @@ services:
|
||||
OPENCLAW_WORKSPACE_DIR: /home/node/.openclaw/workspace
|
||||
|
||||
OPENCLAW_GATEWAY_TOKEN: ${OPENCLAW_GATEWAY_TOKEN}
|
||||
OPENCLAW_ALLOW_INSECURE_PRIVATE_WS: ${OPENCLAW_ALLOW_INSECURE_PRIVATE_WS:-}
|
||||
|
||||
BROWSER: echo
|
||||
TZ: ${OPENCLAW_TZ:-Asia/Shanghai}
|
||||
|
||||
volumes:
|
||||
- ${OPENCLAW_CONFIG_DIR}:/home/node/.openclaw
|
||||
- ${OPENCLAW_WORKSPACE_DIR}:/home/node/.openclaw/workspace
|
||||
- ${OPENCLAW_AUTH_PROFILE_SECRET_DIR}:/home/node/.config/openclaw
|
||||
- "${OPENCLAW_CONFIG_DIR}:/home/node/.openclaw"
|
||||
- "${OPENCLAW_WORKSPACE_DIR}:/home/node/.openclaw/workspace"
|
||||
- "${OPENCLAW_AUTH_PROFILE_SECRET_DIR}:/home/node/.config/openclaw"
|
||||
|
||||
cap_drop:
|
||||
- NET_RAW
|
||||
@@ -117,13 +103,8 @@ services:
|
||||
init: true
|
||||
|
||||
entrypoint:
|
||||
[
|
||||
"node",
|
||||
"dist/index.js"
|
||||
]
|
||||
- node
|
||||
- dist/index.js
|
||||
|
||||
depends_on:
|
||||
- openclaw-gateway
|
||||
|
||||
profiles:
|
||||
- cli
|
||||
- openclaw-gateway
|
||||
Reference in New Issue
Block a user