diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 55a1595..f35fa29 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -22,23 +22,23 @@
- {
+ "keyToString": {
+ "ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true",
+ "ModuleVcsDetector.initialDetectionPerformed": "true",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "RunOnceActivity.git.unshallow": "true",
+ "RunOnceActivity.typescript.service.memoryLimit.init": "true",
+ "SHARE_PROJECT_CONFIGURATION_FILES": "true",
+ "codeWithMe.voiceChat.enabledByDefault": "false",
+ "git-widget-placeholder": "main",
+ "last_opened_file_path": "/Users/kun/PycharmProjects/Docker_Compose/4600Pro/So-Novel",
+ "node.js.detected.package.jshint": "true",
+ "node.js.selected.package.jshint": "",
+ "nodejs_package_manager_path": "npm",
+ "settings.editor.selected.configurable": "configurable.group.project"
}
-}]]>
+}
@@ -81,6 +81,7 @@
+
@@ -210,7 +211,15 @@
1786410474675
-
+
+
+ 1787022400600
+
+
+
+ 1787022400600
+
+
diff --git a/4600Pro/OpenClaw/.env b/4600Pro/OpenClaw/.env
index 65b6c2e..68a7e30 100644
--- a/4600Pro/OpenClaw/.env
+++ b/4600Pro/OpenClaw/.env
@@ -1,56 +1,22 @@
-# =========================================================
-# OpenClaw Docker deployment
-# =========================================================
+# 官方镜像
+OPENCLAW_IMAGE=ghcr.io/openclaw/openclaw:latest
-# Official image
-OPENCLAW_IMAGE=ghcr.io/openclaw/openclaw:latest-browser
-
-# ---------------------------------------------------------
-# Host paths
-# ---------------------------------------------------------
+# 宿主机持久化目录
OPENCLAW_CONFIG_DIR=/volume2/docker/docker_projects/openclaw/data
-OPENCLAW_WORKSPACE_DIR=/volume2/docker/docker_projects/openclaw/data/workspace
+OPENCLAW_WORKSPACE_DIR=/volume2/docker/docker_projects/openclaw/workspace
OPENCLAW_AUTH_PROFILE_SECRET_DIR=/volume2/docker/docker_projects/openclaw/auth
-# ---------------------------------------------------------
-# Gateway
-# ---------------------------------------------------------
+# 你希望 Web UI 使用 2800
OPENCLAW_GATEWAY_PORT=2800
-OPENCLAW_BRIDGE_PORT=2879
-# Docker deployment should normally use LAN bind
+# Bridge 保持默认
+OPENCLAW_BRIDGE_PORT=2799
+
+# Docker 下使用 LAN
OPENCLAW_GATEWAY_BIND=lan
-# Generate a long random value on the server.
-# Example:
-# head -c 32 /dev/urandom | od -An -tx1 | tr -d ' \n'
-OPENCLAW_GATEWAY_TOKEN=CHANGE_ME_TO_A_LONG_RANDOM_TOKEN
-
-# ---------------------------------------------------------
-# Timezone
-# ---------------------------------------------------------
+# 时区
OPENCLAW_TZ=Asia/Shanghai
-# ---------------------------------------------------------
-# Optional provider keys
-# Add only the providers you actually use.
-# ---------------------------------------------------------
-
-# OPENAI_API_KEY=
-# ANTHROPIC_API_KEY=
-# DEEPSEEK_API_KEY=
-
-# ---------------------------------------------------------
-# Optional Telegram
-# Better added later when we configure the Butler Agent.
-# ---------------------------------------------------------
-
-# TELEGRAM_BOT_TOKEN=
-
-# ---------------------------------------------------------
-# Optional
-# Usually leave empty/default
-# ---------------------------------------------------------
-
-OPENCLAW_DISABLE_BONJOUR=1
-OPENCLAW_ALLOW_INSECURE_PRIVATE_WS=
\ No newline at end of file
+# 先自己生成一个
+OPENCLAW_GATEWAY_TOKEN=fca0bf61230f9734a86872e08baed0f0747c4360fb94edb1cc39ab4cd370cd93
\ No newline at end of file
diff --git a/4600Pro/OpenClaw/docker-compose.yml b/4600Pro/OpenClaw/docker-compose.yml
index 7c45918..07588d7 100644
--- a/4600Pro/OpenClaw/docker-compose.yml
+++ b/4600Pro/OpenClaw/docker-compose.yml
@@ -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
\ No newline at end of file
+ - openclaw-gateway
\ No newline at end of file