Skip to content

Commit 9dad44d

Browse files
authored
Merge pull request #2079 from Websoft9/feat/erpnext-kafka-updates-20260312
feat: update openclaw configuration files
2 parents ed3c035 + ca5da2d commit 9dad44d

6 files changed

Lines changed: 78 additions & 427 deletions

File tree

apps/openclaw/.env

Lines changed: 14 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
W9_REPO=websoft9dev/openclaw
1+
# OpenClaw on Docker - Environment Configuration
2+
# Edit this file to customize the deployment settings.
3+
# Full documentation: https://docs.openclaw.ai/install/docker
4+
5+
# =========================================================
6+
# Image
7+
# version tags: https://github.com/openclaw/openclaw/releases
8+
# =========================================================
9+
W9_REPO=ghcr.io/openclaw/openclaw
210
W9_DIST='community'
3-
W9_VERSION='2026.3.11-wecom'
11+
W9_VERSION='2026.3.13-1'
412

513
# =========================================================
614
# Authentication
@@ -27,6 +35,7 @@ W9_ID='openclaw'
2735
W9_HTTP_PORT=18789
2836
W9_BRIDGE_PORT=18790
2937
W9_URL='internet_ip:$W9_HTTP_PORT_SET'
38+
W9_LOGIN_PASSWORD=$W9_POWER_PASSWORD
3039
W9_NETWORK=websoft9
3140

3241
#### ---------------------------------------------------------------------------- ####
@@ -42,46 +51,8 @@ OPENCLAW_GATEWAY_TOKEN=$W9_POWER_PASSWORD
4251
OPENCLAW_GATEWAY_BIND=lan
4352

4453
# Allow insecure private WebSocket connections (leave empty unless needed)
45-
OPENCLAW_ALLOW_INSECURE_PRIVATE_WS=
46-
47-
# =========================================================
48-
# AI Providers (国内主流大模型 API 配置)
49-
# 填写任意一个模型的 API Key 即可启用,支持多个同时配置
50-
# W9_*_SET 变量会在应用商店 UI 中显示,用户可直接填写
51-
# =========================================================
52-
53-
# DeepSeek — 国产高性价比大模型
54-
# Get key: https://platform.deepseek.com/api_keys
55-
W9_DEEPSEEK_API_KEY_SET=
56-
57-
# 百度文心一言 (Baidu ERNIE)
58-
# Get key: https://console.bce.baidu.com/qianfan/ais/console/applicationConsole/application
59-
W9_BAIDU_API_KEY_SET=
60-
W9_BAIDU_SECRET_KEY_SET=
61-
62-
# 阿里通义千问 (Alibaba Qwen)
63-
# Get key: https://dashscope.console.aliyun.com/apiKey
64-
W9_ALIBABA_API_KEY_SET=
65-
66-
# Moonshot/Kimi — 长文本专家 (200K context)
67-
# Get key: https://platform.moonshot.cn/console/api-keys
68-
W9_MOONSHOT_API_KEY_SET=
69-
70-
# ─────────────────────────────────────────────────────────
71-
# 企业微信 (WeCom) — @sunnoy/wecom (社区增强插件)
72-
# ─────────────────────────────────────────────────────────
73-
# WebSocket 长连接模式,无需回调 URL 和 Token/AESKey
74-
# 创建位置: 企业微信管理后台 → 应用管理 → 智能机器人 → 创建机器人 → 长连接模式
75-
# 参考文档: https://open.work.weixin.qq.com/help2/pc/cat?doc_id=21657
76-
W9_WECOM_BOT_ID_SET=
77-
W9_WECOM_BOT_SECRET_SET=
54+
# Set to 'true' when accessing via HTTP on a non-localhost address (no HTTPS).
55+
# This lets the server handle device identity instead of the browser's crypto.subtle API.
56+
OPENCLAW_ALLOW_INSECURE_PRIVATE_WS=true
7857

79-
# 私聊准入策略: open=所有成员免审批 | pairing=新用户需管理员approve | disabled=禁用私聊
80-
W9_WECOM_DM_POLICY_SET=open
8158

82-
# 自建应用 (Agent) — 可选,用于发送文件/图片/主动推送到部门/标签
83-
# 创建位置: 企业微信管理后台 → 应用管理 → 自建 → 创建应用
84-
# 注意: 需在「企业可信IP」中添加服务器 IP,无需配置接收消息回调
85-
W9_WECOM_AGENT_CORP_ID_SET=
86-
W9_WECOM_AGENT_SECRET_SET=
87-
W9_WECOM_AGENT_ID_SET=

apps/openclaw/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# OpenClaw on Docker
2+
3+
This is an **[Docker Compose template](https://github.com/Websoft9/docker-library)** powered by [Websoft9](https://www.websoft9.com) based on Docker for OpenClaw:
4+
5+
6+
- community: 2026.3.13-1
7+
8+
9+
## System Requirements
10+
11+
The following are the minimal [recommended requirements](https://openclaw.ai):
12+
13+
* **RAM**: 2 GB or more
14+
* **CPU**: 2 cores or higher
15+
* **Disk**: at least 10 GB of free space
16+
* **bandwidth**: more fluent experience over 100M
17+
18+
## Install
19+
20+
You can install this OpenClaw by [How to use it?](https://github.com/Websoft9/docker-library#how-to-use-it).
21+
22+
If you want use OpenClaw with **Websoft9 Business Support** free, you can [subscribe OpenClaw](https://www.websoft9.com/apps) on Cloud platform
23+
24+
## Documentation
25+
26+
[OpenClaw Administrator Guide](https://support.websoft9.com/docs/openclaw) powered by Websoft9

apps/openclaw/docker-compose.yml

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,47 @@
22
# docs: https://docs.openclaw.ai/install/docker
33

44
services:
5-
openclaw:
5+
# One-time permission fix so the named volume is writable by uid 1000 (node).
6+
# Mirrors what the official docker-setup.sh does before starting the gateway.
7+
openclaw-init:
8+
image: $W9_REPO:$W9_VERSION
9+
container_name: ${W9_ID}-init
10+
restart: "no"
11+
user: "0"
12+
entrypoint:
13+
- "sh"
14+
- "-c"
15+
- |
16+
mkdir -p /home/node/.openclaw
17+
[ ! -s /home/node/.openclaw/openclaw.json ] && cp /seed/openclaw.json /home/node/.openclaw/openclaw.json
18+
chown -R 1000:1000 /home/node/.openclaw
19+
volumes:
20+
- openclaw_data:/home/node/.openclaw
21+
- ./src/openclaw.json:/seed/openclaw.json:ro
22+
23+
openclaw-gateway:
624
image: $W9_REPO:$W9_VERSION
725
container_name: $W9_ID
826
restart: unless-stopped
927
init: true
10-
user: root
11-
entrypoint: [ "/docker-entrypoint.sh" ]
12-
command: [ "node", "dist/index.js", "gateway", "--bind", "${OPENCLAW_GATEWAY_BIND:-lan}", "--port", "18789" ]
28+
depends_on:
29+
openclaw-init:
30+
condition: service_completed_successfully
31+
command: [ "node", "dist/index.js", "gateway", "--allow-unconfigured", "--bind", "${OPENCLAW_GATEWAY_BIND:-lan}", "--port", "18789" ]
1332
ports:
1433
- $W9_HTTP_PORT_SET:18789
1534
- $W9_BRIDGE_PORT_SET:18790
1635
env_file: .env
1736
environment:
1837
- HOME=/home/node
38+
- NODE_ENV=production
1939
- TERM=xterm-256color
2040
- OPENCLAW_GATEWAY_TOKEN=$W9_POWER_PASSWORD
2141
- OPENCLAW_GATEWAY_BIND=${OPENCLAW_GATEWAY_BIND}
2242
- OPENCLAW_GATEWAY_PORT=18789
2343
- OPENCLAW_ALLOW_INSECURE_PRIVATE_WS=${OPENCLAW_ALLOW_INSECURE_PRIVATE_WS:-}
2444
volumes:
25-
- openclaw_agents:/home/node/.openclaw/agents
26-
- openclaw_workspace:/home/node/.openclaw/workspace
27-
- openclaw_canvas:/home/node/.openclaw/canvas
28-
- openclaw_cron:/home/node/.openclaw/cron
29-
- openclaw_queue:/home/node/.openclaw/delivery-queue
30-
- ./src/init.js:/init.js:ro
45+
- openclaw_data:/home/node/.openclaw
3146
healthcheck:
3247
test:
3348
- "CMD"
@@ -39,15 +54,10 @@ services:
3954
retries: 3
4055
start_period: 30s
4156

42-
# Optional CLI service for channel setup and management commands.
43-
# Not started by default. Usage:
44-
# docker compose --profile cli run --rm openclaw-cli channels login
45-
# docker compose --profile cli run --rm openclaw-cli config set <key> <value>
46-
# docker compose --profile cli run --rm openclaw-cli devices list
4757
openclaw-cli:
4858
image: $W9_REPO:$W9_VERSION
4959
container_name: ${W9_ID}-cli
50-
network_mode: "service:openclaw"
60+
network_mode: "service:openclaw-gateway"
5161
profiles:
5262
- cli
5363
cap_drop:
@@ -57,30 +67,23 @@ services:
5767
- no-new-privileges:true
5868
environment:
5969
- HOME=/home/node
70+
- NODE_ENV=production
6071
- TERM=xterm-256color
6172
- OPENCLAW_GATEWAY_TOKEN=$W9_POWER_PASSWORD
6273
- OPENCLAW_GATEWAY_BIND=${OPENCLAW_GATEWAY_BIND}
6374
- OPENCLAW_ALLOW_INSECURE_PRIVATE_WS=${OPENCLAW_ALLOW_INSECURE_PRIVATE_WS:-}
6475
- BROWSER=echo
6576
volumes:
66-
- openclaw_agents:/home/node/.openclaw/agents
67-
- openclaw_workspace:/home/node/.openclaw/workspace
68-
- openclaw_canvas:/home/node/.openclaw/canvas
69-
- openclaw_cron:/home/node/.openclaw/cron
70-
- openclaw_queue:/home/node/.openclaw/delivery-queue
77+
- openclaw_data:/home/node/.openclaw
7178
stdin_open: true
7279
tty: true
7380
init: true
7481
entrypoint: [ "node", "dist/index.js" ]
7582
depends_on:
76-
- openclaw
83+
- openclaw-gateway
7784

7885
volumes:
79-
openclaw_agents:
80-
openclaw_workspace:
81-
openclaw_canvas:
82-
openclaw_cron:
83-
openclaw_queue:
86+
openclaw_data:
8487

8588

8689
networks:

apps/openclaw/src/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)