Migration Guides

Migrating from Firebase to AnubizHost

Firebase is convenient but locks your data into Google's infrastructure and pricing model. This guide covers migrating Firebase apps to self-hosted alternatives on AnubizHost offshore VPS - Supabase or PostgREST for Firestore, Keycloak for Auth, MinIO for Storage.

Need this done for your project?

We implement, you ship. Async, documented, done in days.

Start a Brief

Map Firebase Services to Self-Hosted

Firestore → Supabase (PostgreSQL + REST API) or PostgREST. Firebase Auth → Keycloak or Authentik. Firebase Storage → MinIO. Firebase Functions → containerized Node.js or Deno on AnubizHost VPS. Firebase Hosting → nginx static hosting.

Supabase is the closest single-package replacement. It bundles PostgreSQL, REST, Realtime, Auth, and Storage in one self-hostable stack.

Provision AnubizHost Stack

Order offshore VPS (4GB+ RAM for Supabase). Install Docker. Clone supabase/supabase repo, run docker compose up. Or install components individually if you want finer control: PostgreSQL, PostgREST, GoTrue (auth), Storage API.

Migrate Firestore to PostgreSQL

Firestore is document-oriented; PostgreSQL stores documents as JSONB. Export Firestore data with firebase firestore:export gs://bucket/path. Transform documents to JSONB rows with a small script. Load into PostgreSQL.

For real-time subscriptions, use Supabase Realtime (PostgreSQL logical decoding) or implement Server-Sent Events / WebSockets in your application layer.

Migrate Auth and Storage

Firebase Auth users: export with firebase auth:export users.json. Bulk import to Keycloak via REST API or to Supabase Auth via SQL import. Password hashes may need re-hashing depending on target.

Firebase Storage to MinIO: list buckets, use gsutil to download, mc cp to MinIO. Update SDK endpoint in client code.

Why Move from Firebase

Firebase pricing is per-operation, which is unpredictable as you scale. Self-hosted on AnubizHost VPS is flat-rate. Plus, you own the data and control jurisdiction. Romania, Iceland, Netherlands offshore vs. Google's US-based Firebase. Related reading: offshore VPS, switching from GCP, database hosting.

Why Anubiz Host

100% async — no calls, no meetings
Delivered in days, not weeks
Full documentation included
Production-grade from day one
Security-first approach
Post-delivery support included

Ready to get started?

Skip the research. Tell us what you need, and we'll scope it, implement it, and hand it back — fully documented and production-ready.

Anubiz Chat AI

Online
How to Migrate from Firebase to AnubizHost - Self-Hosted