Container Topology
Topologi kontainerisasi Vercel Serverless, Render Docker container, dan broker HiveMQ.
Status: Stablev1.0.0Source Verified: Yes
Source:
backend/Dockerfile.render, vercel.json, docker-compose.ymlTests: tests/unit/aiHealth.test.tsContainer Topology & Cloud Services#
Spesifikasi arsitektur kontainer dan penyebaran layanan cloud OrthoBreath pada lingkungan staging dan produksi.
1. Peta Topologi Kontainer & Layanan#
Diagram Arsitektur / Alur Data
Merender diagram alur terstruktur...
2. Spesifikasi Render Docker Container#
Kontainer AI Engine dibangun menggunakan Dockerfile multi-stage berbasis python:3.11-slim:
- Image Size Target: < 350 MB
- Non-Root User: Menjalankan proses dengan user
appuser(UID 10001) untuk keamanan. - Port Binding: Port internal
8000dipetakan ke port HTTPS Render443. - Health Check Probe:
GET /healthsetiap 30 detik.
3. Isolasi Jaringan & Protokol Komunikasi#
| Link Komunikasi | Protokol | Autentikasi | Port |
|---|---|---|---|
| Browser -> Next.js | HTTPS / WSS | Session Cookie (HttpOnly) | 443 |
| Next.js -> FastAPI | HTTPS | X-Internal-Secret HMAC SHA-256 | 443 |
| Next.js -> HiveMQ | MQTTS | Username + TLS Client Cert | 8883 |
| ESP32 -> HiveMQ | MQTTS | Pre-shared MQTT Credentials | 8883 |