Replace Firebase / Managed BaaS with Self-Hosted PocketBase
Open-source backend in 1 single file: embedded SQLite with real-time subscriptions, Auth, and S3 storage Stop paying Pro + Multi-Project + Egress (~$45–$125/mo) ($45/mo for a 10-person team) and run PocketBase on a $4.50/mo Linux VPS with full data sovereignty.
1-to-100 Seat Total Cost of Ownership (TCO) Table
Comparing Firebase / Managed BaaS (Pro + Multi-Project + Egress (~$45–$125/mo)) vs PocketBase on Hetzner CX22 (4GB RAM / 2 vCPU).
| Team Size | Firebase / Managed BaaS Cost | PocketBase VPS | Net Annual Savings |
|---|---|---|---|
| 1 Seat (Solo) | $45.00/mo ($540/yr) | $4.50/mo (CX22) | +$486 / year |
| 5 Seats | $45.00/mo ($540/yr) | $4.50/mo (CX22) | +$486 / year |
| 10 Seats | $45.00/mo ($540/yr) | $4.50/mo (CX22) | +$486 / year |
| 25 Seats | $45.00/mo ($540/yr) | $4.50/mo (CX22) | +$486 / year |
| 50 Seats | $45.00/mo ($540/yr) | $4.50/mo (CX22) | +$486 / year |
| 100 Seats | $45.00/mo ($540/yr) | $4.50/mo (CX22) | +$486 / year |
Production Docker Compose + Caddy Auto-SSL
Copy and run docker compose up -d on any Ubuntu 24.04 server.
# Production Docker Compose: PocketBase (Replaces Firebase / Managed BaaS)
services:
caddy:
image: caddy:2-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
networks:
- stack_net
pocketbase:
image: ghcr.io/muchobien/pocketbase:latest
container_name: stack-pocketbase
restart: unless-stopped
environment:
- "PB_ENCRYPTION_KEY=${PB_ENC_KEY:-32_character_encryption_key_here}"
volumes:
- pocketbase_data:/data
networks:
- stack_net
networks:
stack_net:
driver: bridge
volumes:
caddy_data:
pocketbase_data:
# Automatic Let's Encrypt HTTPS for PocketBase
pocketbase.{$DOMAIN:yourdomain.com} {
encode zstd gzip
reverse_proxy pocketbase:8090
}
Why Teams Switch to PocketBase
- ✓Handles 10,000+ concurrent connections on a $4 VPS
- ✓Uses <60MB RAM idle
- ✓Built-in Admin UI, OAuth2 & JS/Go hooks
ghcr.io/muchobien/pocketbase:latest
Deploy PocketBase in 60 Seconds
Sized automatically for PocketBase (128MB container RAM + OS overhead).
Get All 16 Pre-Built Production Stacks + Encrypted S3 Backups
Includes pre-tuned docker-compose.yml, Caddy Auto-SSL, AES-256 encrypted nightly S3/R2 Postgres backups, and Ubuntu 24.04 UFW/Fail2ban hardening scripts.