Skip to content

Commit 673ec93

Browse files
jackwuweiclaude
andcommitted
Use host networking in compose so the robot's real IP is recorded
With port mapping, wire-pod records the Docker gateway as the robot's IP (taken from the gRPC peer address), so the SDK app dials wire-pod itself and fails with 'unknown service ExternalInterface'. Host networking also lets mDNS (escapepod.local) reach the LAN. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 8995ca8 commit 673ec93

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎compose.yaml‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
services:
22
wire-pod:
33
container_name: wire-pod
4-
hostname: escapepod
54
build:
65
context: .
76
dockerfile: dockerfile
87
image: jackwuwei/wire-pod-chinese:latest
98
restart: unless-stopped
109
environment:
1110
WIREPOD_DATA_DIR: /data
12-
ports:
13-
- "80:80"
14-
- "443:443"
15-
- "8080:8080"
16-
- "8084:8084"
11+
# host 网络:wire-pod 按连接来源记录机器人 IP,端口映射(NAT)会记成 Docker 网关,
12+
# 导致 SDK 连回 wire-pod 自己(unknown service ExternalInterface);mDNS 也需要 host 网络。
13+
# 仅 Linux 宿主机有效,Docker Desktop (Windows/Mac) 不支持。
14+
network_mode: host
1715
volumes:
1816
- wire-pod-data:/data
1917
- wire-pod-images:/images

0 commit comments

Comments
 (0)