Menu

How to install self-hosted Supabase on an Ubuntu VPS
📰

How to install self-hosted Supabase on an Ubuntu VPS

DEV Community: docker·Fernando Chagas·6 days ago
#4qMldQON
#devtodocker#devto#dev#docker#supabase
Long article (1839 words) — no AI summary yet.
Reading 0:00
15s threshold

This guide deploys self-hosted Supabase on an Ubuntu 24.04 VPS using the official Docker Compose setup, with Envoy as the API gateway, Caddy in front for automatic HTTPS, and PostgreSQL ports locked to localhost . Only ports 80 and 443 face the public internet; Studio requires HTTP Basic Auth at the proxy, and direct database access goes through an SSH tunnel.

The versions and files below follow the upstream supabase/supabase repository, which ships PostgreSQL 17 ( supabase/postgres:17.6.1.136 ), envoyproxy/envoy:v1.39.6 as the default API gateway, supabase/supavisor:2.9.13 for connection pooling, and the built-in docker-compose.caddy.yml override.

What you need

An Ubuntu 24.04 64-bit VPS with Docker Engine, the Compose plugin ( v2.20+ ), git , openssl and SSH access with sudo .

A domain or subdomain with an A record pointing to the VPS public IPv4 address ( supabase.example.com in the examples below).

An SMTP server (such as Resend, Postmark or SES) so Auth can deliver signup confirmation and password…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.