Closes #1339. The Nexus Three.js app required HTTP serving for module imports to work (file:// and raw Forge URLs break). This change: - server.py: dual-purpose async server — HTTP on :8080 (static files) and WebSocket on :8765 (broadcast gateway), single process - Dockerfile: exposes both 8080 (HTTP) and 8765 (WS), includes all frontend assets (boot.js, bootstrap.mjs, gofai_worker.js, etc.) - docker-compose.yml: maps HTTP :8080/:8081 + WS :8765/:8766 - deploy.sh: updated for new port layout - run.sh: standalone no-Docker launcher - app.js: WS URL derives from HTTP port (8080->8765, 8081->8766) - deploy.yml workflow: docker compose on remote host To deploy: `./deploy.sh` (Docker) or `./run.sh` (bare metal). Open http://HOST:8080 in a browser — Three.js modules load correctly.
18 lines
306 B
YAML
18 lines
306 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
nexus-main:
|
|
build: .
|
|
container_name: nexus-main
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:8080"
|
|
- "8765:8765"
|
|
nexus-staging:
|
|
build: .
|
|
container_name: nexus-staging
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8081:8080"
|
|
- "8766:8765"
|