-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
49 lines (46 loc) · 1.18 KB
/
docker-compose.test.yml
File metadata and controls
49 lines (46 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# ClawApp 测试环境
# 使用隔离的 OpenClaw 实例,不影响本地正在运行的 OpenClaw
# 端口映射:28789(避免与本地 18789 冲突)
services:
# 隔离的 OpenClaw Gateway(测试用)
openclaw-test:
image: alpine/openclaw:latest
container_name: openclaw-mobile-test
environment:
HOME: /home/node
TERM: xterm-256color
OPENCLAW_GATEWAY_TOKEN: test-gateway-token-changeme
volumes:
- openclaw-test-data:/home/node/.openclaw
ports:
- "28789:18789"
init: true
restart: unless-stopped
command:
[
"node",
"dist/index.js",
"gateway",
"--bind",
"lan",
"--port",
"18789",
]
# WebSocket 代理服务端
proxy:
build:
context: ./server
dockerfile: Dockerfile
container_name: openclaw-mobile-proxy
environment:
PROXY_PORT: "3210"
PROXY_TOKEN: "mobile-test-token-2026"
OPENCLAW_GATEWAY_URL: "ws://openclaw-test:18789"
OPENCLAW_GATEWAY_TOKEN: "test-token-openclaw-mobile-2026"
ports:
- "3210:3210"
depends_on:
- openclaw-test
restart: unless-stopped
volumes:
openclaw-test-data: