# supabase-automated-self-host

> A bash script that automates deploying Supabase with Nginx or Caddy reverse proxy, Let's Encrypt SSL, and optional Authelia 2FA on Linux using Docker Compose.

- **Category:** Backend as a Service
- **Licence:** Apache-2.0
- **Open source:** oss
- **Languages:** Typescript, Shell, PLpgSQL
- **Platforms:** Docker Compose
- **Tags:** PostgreSQL, Caddy, Nginx, 2FA, Storage, Authelia, Api Gateway, Supabase, Authentication, Docker, Docker Compose, Backend As A Service, Self Hosted, Realtime, Letsencrypt, Edge Functions

## Description

Supabase Automated Self-Host is a wrapper script that simplifies running Supabase on your own Linux server. It generates all required secrets, sets up either Caddy or Nginx as a reverse proxy with automatic Let's Encrypt certificates, and optionally adds Authelia for two-factor authentication. The script interactively prompts for your domain, admin credentials, and email preferences, then produces a complete Docker Compose environment. You then start the stack with docker compose up -d. Minimum requirements are a Linux machine with Docker, 4 GB of memory, and 25 GB of disk space. This project is not officially affiliated with Supabase.

## Links

- [Homepage](https://github.com/singh-inder/supabase-automated-self-host)
- [Docker](supabase/studio)
- [GitHub Repository](https://github.com/singh-inder/supabase-automated-self-host)
- [YouTube Tutorial](https://www.youtube.com/watch?v=XhTBCGb0rTM)
- [Discord Community](https://discord.gg/Pbpm7NsVjG)
- [X/Twitter](https://x.com/_inder1)

---
Source: https://selfhost.directory/project/supabase-automated-self-host