The Bootstrapped Cloud
CategoriesPostsAbout
The Bootstrapped Cloud
© 2026 The Bootstrapped Cloud. Built for the self-hosted community.
Privacy PolicyTerms of ServiceAboutContact
  1. Home
  2. /Blog
  3. /Infrastructure
  4. /How to Self-Host Supabase on AWS EC2 Docker
Infrastructure•Jul 7, 2026•14 min read

How to Self-Host Supabase on AWS EC2 Docker

Supabase has emerged as the leading open-source Firebase alternative, but the managed cloud tier can quickly become expensive. Self-hosting Supabase on AWS EC2 with Docker Compose provides the same powerful backend at a fraction of the cost.

This guide walks through deploying the full Supabase stack on a t3.medium instance, handling ~10,000 concurrent users for roughly $30/month versus $200+/month managed.

Launch EC2 Instance

Launch a t3.medium instance with Ubuntu 24.04, 30GB gp3 root volume. Configure security group for ports 22, 80, 443, and 3000.

Clone and Configure

Clone the official Supabase self-hosted repo and configure environment variables including JWT secrets and database password.

Cost Breakdown

ResourceSelf-HostedManaged Pro
Compute (t3.medium)$30$200
Storage (30GB gp3)$6Included
Bandwidth (500GB)$10$50+ overage
Total$46/month$250+/month
Self-HostingSupabaseDockerAWSPostgreSQL
Share

Related Guides

Infrastructure

How to Deploy Plausible Analytics on DigitalOcean Droplets

A step-by-step 10-minute automated script deployment tutorial for running a lightweight, privacy-compliant analytical platform without traffic bill spikes.

10 min read
mail

Get new guides delivered to your inbox

No spam. Unsubscribe anytime.

Comments

On this page

  • Launch EC2 Instance
  • Clone and Configure
  • Cost Breakdown