Skip to content

Self-Hosting Supabase with Docker Swarm

Published: at 02:30 PM

The Problem

Supabase’s official Docker Compose setup works fine for development. Production with Docker Swarm? Not so much.

Issues I ran into:

The Solution

After 6 months of running this in production, I packaged it into a working deployment setup.

git clone https://github.com/tsensei/supabase-swarm.git
cd supabase-swarm
./setup.sh --swarm
./deploy-swarm.sh

What’s Different

Docker Swarm Configuration

Deployment Methods

Documentation

Why Swarm, Not Kubernetes?

For self-hosted Supabase, Swarm is simpler:

If you need K8s-level orchestration, you probably need managed Supabase anyway.

Repository: github.com/tsensei/supabase-swarm

The repo has full documentation. If you run into issues, open a GitHub issue.


Next Post
Tracking Discord Standups So I Don't Have To