Self-host Nhost
Open-source Firebase alternative built on Postgres and Hasura's instant GraphQL API, with authentication, file storage, and serverless functions in one Docker Compose stack.
Key facts
Reach for Nhost when you want Hasura's instant GraphQL API over Postgres bundled with auth, storage, and functions — a strong fit if your app is GraphQL-first rather than REST-first. Budget 2 GB and expect to do more assembly than Supabase's official stack: the self-hosted path is a community Docker Compose reference, not the product Nhost sells as managed cloud.
What you need
- Any VPS with at least 2048 MB of RAM
- A domain you control — most self-hosted setups need HTTPS in front of them
- About the better part of a day
Install
Run these commands on your server:
# Nhost — self-hosting reference stack (community-maintained; no formal support without a paid agreement)
git clone https://github.com/nhost/nhost
cd nhost/examples/docker-compose
cp .env.example .env
docker compose up -dWhat you take on
Nhost is Postgres and Hasura underneath, both mature — but the self-hosted packaging asks more of you than the hosted product does: