Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 44b9c30

Browse files
committed
fix: Docker port mismatch — server now binds 3000/3001 as documented
The sensing server defaults to HTTP :8080 and WS :8765, but Docker exposes :3000/:3001. Added --http-port 3000 --ws-port 3001 to CMD in both Dockerfile.rust and docker-compose.yml. Verified both images build and run: - Rust: 133 MB, all endpoints responding (health, sensing/latest, vital-signs, pose/current, info, model/info, UI) - Python: 569 MB, all packages importable (websockets, fastapi) - RVF file: 13 KB, valid RVFS magic bytes Also fixed README Quick Start endpoints to match actual routes: - /api/v1/health → /health - /api/v1/sensing → /api/v1/sensing/latest - Added /api/v1/pose/current and /api/v1/info examples - Added port mapping note for Docker vs local dev Co-Authored-By: claude-flow <[email protected]>
1 parent 50f0fc9 commit 44b9c30

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,13 +271,19 @@ system.stop()
271271

272272
```bash
273273
# Health check
274-
curl http://localhost:3000/api/v1/health
274+
curl http://localhost:3000/health
275275

276276
# Latest sensing frame
277-
curl http://localhost:3000/api/v1/sensing
277+
curl http://localhost:3000/api/v1/sensing/latest
278278

279279
# Vital signs
280280
curl http://localhost:3000/api/v1/vital-signs
281+
282+
# Pose estimation
283+
curl http://localhost:3000/api/v1/pose/current
284+
285+
# Server info
286+
curl http://localhost:3000/api/v1/info
281287
```
282288

283289
### 4. Real-time WebSocket
@@ -942,6 +948,8 @@ POST /api/v1/model/sona/activate # Activate SONA profile
942948

943949
WebSocket: `ws://localhost:8765/ws/sensing` (real-time sensing + vital signs)
944950

951+
> Default ports: HTTP 8080, WS 8765. Docker images remap to 3000/3001 via `--http-port` / `--ws-port`.
952+
945953
</details>
946954

947955
<details>

docker/Dockerfile.rust

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ EXPOSE 5005/udp
4343
ENV RUST_LOG=info
4444

4545
ENTRYPOINT ["/app/sensing-server"]
46-
CMD ["--source", "simulated", "--tick-ms", "100", "--ui-path", "/app/ui"]
46+
CMD ["--source", "simulated", "--tick-ms", "100", "--ui-path", "/app/ui", "--http-port", "3000", "--ws-port", "3001"]

docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
- "5005:5005/udp" # ESP32 UDP
1313
environment:
1414
- RUST_LOG=info
15-
command: ["--source", "simulated", "--tick-ms", "100", "--ui-path", "/app/ui"]
15+
command: ["--source", "simulated", "--tick-ms", "100", "--ui-path", "/app/ui", "--http-port", "3000", "--ws-port", "3001"]
1616

1717
python-sensing:
1818
build:

0 commit comments

Comments
 (0)