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 <ruv@ruv.net>
This commit is contained in:
ruv
2026-03-01 00:56:41 -05:00
parent 50f0fc955b
commit 44b9c30dbc
3 changed files with 12 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ services:
- "5005:5005/udp" # ESP32 UDP
environment:
- RUST_LOG=info
command: ["--source", "simulated", "--tick-ms", "100", "--ui-path", "/app/ui"]
command: ["--source", "simulated", "--tick-ms", "100", "--ui-path", "/app/ui", "--http-port", "3000", "--ws-port", "3001"]
python-sensing:
build: