Introduction
Budget Bee is designed to be self-hosted, giving you complete control over your financial data. This guide will walk you through the process of deploying Budget Bee on your own infrastructure.Architecture Overview
Budget Bee follows a modern microservices architecture with the following components:Core Components
PostgreSQL
Primary database storing all financial data, user accounts, and organizational information
PostgREST
Auto-generated REST API from PostgreSQL schema with JWT authentication
Next.js App
Frontend application and API routes for business logic
Redis
Optional caching layer for sessions and performance optimization
Prerequisites
Before you begin, ensure you have the following installed:System Requirements
Minimum Requirements
- CPU: 2 cores
- RAM: 4GB
- Storage: 20GB SSD
- OS: Linux, macOS, or Windows with WSL2
Recommended Requirements
- CPU: 4+ cores
- RAM: 8GB+
- Storage: 50GB+ SSD
- OS: Ubuntu 22.04 LTS or similar
Deployment Options
Docker Compose
Recommended for local development and small deployments
Kubernetes
Scale Budget Bee with Kubernetes for production-grade deployments
Manual Setup
Advanced - run services without containers
Cloud Platforms
Deploy to AWS, GCP, Azure, or DigitalOcean
Quick Start
For a rapid deployment using Docker Compose:The
make setup command will:- Install all dependencies
- Create environment files
- Start Docker containers
- Create database roles
- Run all migrations
- Configure JWT secrets
Port Configuration
By default, Budget Bee uses the following ports:| Service | Port | Description |
|---|---|---|
| PostgreSQL | 5100 | Database server |
| PostgREST | 5101 | REST API |
| Adminer | 5102 | Database admin UI |
| Web App | 3000 | Main application |
| Landing Page | 3001 | Marketing site |
| Docs | 3002 | Documentation |
| Currency API | 8787 | Exchange rates service |
Next Steps
Docker Setup
Set up using Docker Compose
Database Migrations
Understand the migration process
PostgreSQL Config
Configure PostgreSQL settings
Getting Help
If you encounter issues during deployment:- Check the GitHub Issues
- Email: [email protected]
- Twitter: @sammaji15

