👨💻 Setup Supabase — Self-Hosted Firebase Alternative
Deploy Supabase on Ubuntu — the open-source Firebase alternative giving you a Postgres database, auto-generated APIs, authentication, storage, and realtime on your own server.
📦 Resources & Setup Scripts
Grab the automated bash script from GitHub to follow along with the video.
Quick Install:
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/dev/supabase/supabase-ubuntu.sh
chmod +x supabase-ubuntu.sh
sudo bash supabase-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/dev/supabase/supabase-ubuntu.sh
2 Make it Executable
chmod +x supabase-ubuntu.sh
3 Run the Installer
The script installs Docker if needed, clones the official Supabase repository, generates the JWT secret, anon key, service role key, and database password, then starts the full multi-container stack. First start takes several minutes.
sudo bash supabase-ubuntu.sh
4 Open Supabase Studio
Open your browser and navigate to Studio through the Kong gateway, then log in with the dashboard username supabase and the generated password:
http://<your-server-ip>:8200
Ports Used
| Port | Purpose |
|---|---|
| 8200 | Kong gateway (HTTP) — Studio, REST API, auth, storage, realtime |
| 8447 | Kong gateway (HTTPS) |
| internal | PostgreSQL 5432 + a dozen Supabase services (keep internal) |