Requirements
System requirements for running Brainz Lab.Software
Required
| Software | Version | Notes |
|---|---|---|
| Docker | 24.0+ | With Compose v2 |
| PostgreSQL | 15+ | Or use Docker image |
| Redis | 7.0+ | Or use Docker image |
Optional
| Software | Version | Notes |
|---|---|---|
| Kubernetes | 1.28+ | For k8s deployment |
| Nginx | Latest | For reverse proxy |
| Certbot | Latest | For SSL certificates |
Hardware
Minimum (Development/Testing)
| Resource | Requirement |
|---|---|
| CPU | 4 cores |
| RAM | 8 GB |
| Storage | 50 GB SSD |
| Network | 100 Mbps |
Recommended (Production)
| Resource | Requirement |
|---|---|
| CPU | 8+ cores |
| RAM | 16+ GB |
| Storage | 200+ GB SSD |
| Network | 1 Gbps |
High-Volume (Enterprise)
| Resource | Requirement |
|---|---|
| CPU | 16+ cores per node |
| RAM | 32+ GB per node |
| Storage | 500+ GB SSD per node |
| Network | 10 Gbps |
| Nodes | 3+ for HA |
Database Sizing
PostgreSQL
Storage grows with log and error volume:| Daily Volume | Recommended Storage |
|---|---|
| 1M logs | 50 GB |
| 10M logs | 200 GB |
| 100M logs | 1 TB |
Redis
Redis stores:- Session data
- Rate limiting counters
- Background job queues
| Concurrent Users | Redis Memory |
|---|---|
| 1,000 | 256 MB |
| 10,000 | 1 GB |
| 100,000 | 4 GB |
Network
Ports
| Port | Service | Access |
|---|---|---|
| 80 | HTTP | Public |
| 443 | HTTPS | Public |
| 3000 | Platform | Internal |
| 4001 | Recall | Internal |
| 4002 | Reflex | Internal |
| 5432 | PostgreSQL | Internal |
| 6379 | Redis | Internal |
Firewall Rules
Allow inbound:- 80/443 from anywhere (web traffic)
- 22 from admin IPs (SSH)
DNS
You’ll need DNS records for:SSL Certificates
For production, use SSL:- Let’s Encrypt (free, auto-renewal)
- Commercial certificate
- Self-signed (testing only)
Backup Requirements
Plan for backups:| Component | Backup Frequency |
|---|---|
| PostgreSQL | Daily + continuous WAL |
| Redis | Hourly RDB snapshots |
| Config files | On change |
- 3x your database size for 7 daily backups
- Object storage (S3, GCS) recommended