Deployment Guide
Panduan deployment RetailOS ke production environment. RetailOS menggunakan bare metal deployment dengan Go binary + systemd, tanpa container orchestration.
Deployment Architecture
Deploy Scripts
RetailOS menyediakan 4 script di deploy/fresh-server/ untuk setup server dari nol:
| Script | Fungsi |
|---|---|
01-harden.sh | Hardening server baru (SSH, UFW, fail2ban, install PostgreSQL + Nginx) |
02-deploy.sh | Build Go binaries, upload ke server, setup systemd services |
03-tailscale-cloudflare.sh | Install Tailscale VPN, lock firewall ke Cloudflare IPs |
04-webapps.sh | Build & deploy semua portal web, docs, dan Uptime Kuma |
Komponen & Port
| Komponen | Image/Binary | Port | Tipe |
|---|---|---|---|
| Cloud Hub | retailos-cloud-hub | 8090 | Go binary + systemd |
| Store Router | retailos-store-router | 8081 | Go binary + systemd |
| DC Edge | retailos-dc-edge | 8082 | Go binary + systemd |
| PostgreSQL | System package | 5432 | Database |
| Nginx | System package | 80, 443 | Reverse proxy |
| Uptime Kuma | Docker container | 3001 | Monitoring |
| HO Finance | Static files | via Nginx | Vite SPA |
| Store Admin | Static files | via Nginx | Vite SPA |
Halaman Terkait
- Server Setup -- Detail setup dari fresh server
- Docker -- Container deployment & Uptime Kuma
- Cloudflare + Tailscale -- Security hardening jaringan