update 26.8.11

This commit is contained in:
kun
2026-08-18 14:07:11 +08:00
parent d8d16e1b56
commit 646f8d10a8
3 changed files with 67 additions and 37 deletions
+12 -2
View File
@@ -5,6 +5,8 @@
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="ae3fb6a0-aca4-4c0a-858b-91952e6dcdd3" name="更改" comment="update 26.8.11"> <list default="true" id="ae3fb6a0-aca4-4c0a-858b-91952e6dcdd3" name="更改" comment="update 26.8.11">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/4600Pro/OpenClaw/.env" beforeDir="false" afterPath="$PROJECT_DIR$/4600Pro/OpenClaw/.env" afterDir="false" />
<change beforePath="$PROJECT_DIR$/4600Pro/OpenClaw/docker-compose.yml" beforeDir="false" afterPath="$PROJECT_DIR$/4600Pro/OpenClaw/docker-compose.yml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/4600Pro/OpenClaw/docker-compose.yml" beforeDir="false" afterPath="$PROJECT_DIR$/4600Pro/OpenClaw/docker-compose.yml" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
@@ -84,7 +86,7 @@
<workItem from="1786323616451" duration="105000" /> <workItem from="1786323616451" duration="105000" />
<workItem from="1786409759648" duration="770000" /> <workItem from="1786409759648" duration="770000" />
<workItem from="1787022222565" duration="1218000" /> <workItem from="1787022222565" duration="1218000" />
<workItem from="1787030835540" duration="319000" /> <workItem from="1787030835540" duration="2233000" />
</task> </task>
<task id="LOCAL-00001" summary="update 26.7.27"> <task id="LOCAL-00001" summary="update 26.7.27">
<option name="closed" value="true" /> <option name="closed" value="true" />
@@ -230,7 +232,15 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1787030905479</updated> <updated>1787030905479</updated>
</task> </task>
<option name="localTasksCounter" value="19" /> <task id="LOCAL-00019" summary="update 26.8.11">
<option name="closed" value="true" />
<created>1787031207232</created>
<option name="number" value="00019" />
<option name="presentableId" value="LOCAL-00019" />
<option name="project" value="LOCAL" />
<updated>1787031207232</updated>
</task>
<option name="localTasksCounter" value="20" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
+6 -11
View File
@@ -1,18 +1,13 @@
# 官方镜像
OPENCLAW_IMAGE=ghcr.io/openclaw/openclaw:latest OPENCLAW_IMAGE=ghcr.io/openclaw/openclaw:latest
# OpenClaw 内部 Gateway 端口
OPENCLAW_GATEWAY_PORT=18789
# 你希望 Web UI 使用 2800 # Bridge 内部端口
OPENCLAW_GATEWAY_PORT=2800 OPENCLAW_BRIDGE_PORT=18790
# Bridge 保持默认
OPENCLAW_BRIDGE_PORT=2799
# Docker 下使用 LAN
OPENCLAW_GATEWAY_BIND=lan OPENCLAW_GATEWAY_BIND=lan
# 时区 OPENCLAW_GATEWAY_TOKEN=fV3cYPabGURAEH
OPENCLAW_TZ=Asia/Shanghai
# 先自己生成一个 OPENCLAW_TZ=Asia/Shanghai
OPENCLAW_GATEWAY_TOKEN=fca0bf61230f9734a86872e08baed0f0747c4360fb94edb1cc39ab4cd370cd93
+49 -24
View File
@@ -1,30 +1,42 @@
services: services:
openclaw-gateway: openclaw-gateway:
image: ${OPENCLAW_IMAGE} image: ${OPENCLAW_IMAGE:-ghcr.io/openclaw/openclaw:latest}
container_name: openclaw-gateway container_name: openclaw-gateway
# 你的 /volume2 无法正常 chown 给 UID 1000,
# 因此当前环境用 root 运行,解决持久化目录写权限问题
user: "0:0" user: "0:0"
env_file: env_file:
- .env - .env
environment: environment:
HOME: /home/node
OPENCLAW_HOME: /home/node
TERM: xterm-256color
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}
TZ: ${OPENCLAW_TZ:-Asia/Shanghai} TZ: ${OPENCLAW_TZ:-Asia/Shanghai}
HOME: /root
OPENCLAW_HOME: /root
TERM: xterm-256color
OPENCLAW_STATE_DIR: /root/.openclaw
OPENCLAW_CONFIG_PATH: /root/.openclaw/openclaw.json
OPENCLAW_CONFIG_DIR: /root/.openclaw
OPENCLAW_WORKSPACE_DIR: /root/.openclaw/workspace
# OpenClaw 内部始终认 18789
OPENCLAW_GATEWAY_PORT: "18789"
OPENCLAW_GATEWAY_BIND: ${OPENCLAW_GATEWAY_BIND:-lan}
OPENCLAW_GATEWAY_TOKEN: ${OPENCLAW_GATEWAY_TOKEN}
volumes: volumes:
- /volume2/docker/docker_projects/openclaw/data:/home/node/.openclaw # 所有长期数据统一持久化
- /volume2/docker/docker_projects/openclaw/data:/root/.openclaw
ports: ports:
- "${OPENCLAW_GATEWAY_PORT:-2800}:18789" # 宿主机 Web UI 2800 -> 容器 Gateway 18789
- "${OPENCLAW_BRIDGE_PORT:-18790}:18790" - "2800:18789"
# 如果你希望 Bridge 外部仍用 2799
- "2799:18790"
extra_hosts: extra_hosts:
- "host.docker.internal:host-gateway" - "host.docker.internal:host-gateway"
@@ -38,13 +50,19 @@ services:
"dist/index.js", "dist/index.js",
"gateway", "gateway",
"--bind", "--bind",
"${OPENCLAW_GATEWAY_BIND:-lan}", "lan",
"--port", "--port",
"18789" "18789"
] ]
healthcheck: healthcheck:
test: ["CMD", "node", "dist/docker-healthcheck.js"] 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 interval: 30s
timeout: 5s timeout: 5s
retries: 5 retries: 5
@@ -52,7 +70,7 @@ services:
openclaw-cli: openclaw-cli:
image: ${OPENCLAW_IMAGE} image: ${OPENCLAW_IMAGE:-ghcr.io/openclaw/openclaw:latest}
container_name: openclaw-cli container_name: openclaw-cli
user: "0:0" user: "0:0"
@@ -60,21 +78,28 @@ services:
env_file: env_file:
- .env - .env
# 官方 Compose 就是让 CLI 与 Gateway 共用 network namespace
network_mode: "service:openclaw-gateway" network_mode: "service:openclaw-gateway"
environment: environment:
HOME: /home/node
OPENCLAW_HOME: /home/node
TERM: xterm-256color
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}
TZ: ${OPENCLAW_TZ:-Asia/Shanghai} TZ: ${OPENCLAW_TZ:-Asia/Shanghai}
HOME: /root
OPENCLAW_HOME: /root
TERM: xterm-256color
BROWSER: echo
OPENCLAW_STATE_DIR: /root/.openclaw
OPENCLAW_CONFIG_PATH: /root/.openclaw/openclaw.json
OPENCLAW_CONFIG_DIR: /root/.openclaw
OPENCLAW_WORKSPACE_DIR: /root/.openclaw/workspace
OPENCLAW_GATEWAY_PORT: "18789"
OPENCLAW_GATEWAY_BIND: ${OPENCLAW_GATEWAY_BIND:-lan}
OPENCLAW_GATEWAY_TOKEN: ${OPENCLAW_GATEWAY_TOKEN}
volumes: volumes:
- /volume2/docker/docker_projects/openclaw/data:/home/node/.openclaw - /volume2/docker/docker_projects/openclaw/data:/root/.openclaw
stdin_open: true stdin_open: true
tty: true tty: true