Supabase¶
Run complete, self-hosted Supabase projects from the panel: Postgres 17, Auth, REST and GraphQL APIs, Realtime, Storage with image transforms, Edge Functions and the Studio dashboard. Each project is isolated on its own Docker network and reachable on a single port.
Why a plugin and not a catalog tile¶
Supabase is not one container but ten cooperating services. What makes them cooperate is a layer of provisioning: database roles and schemas created by init scripts on the very first start, a gateway route table, and a dozen secrets that have to agree with each other. A list of containers cannot express that, which is why the Docker Manager catalog points here instead.
The plugin ships Supabase's own upstream configuration (embedded in the panel
binary, pinned to one tested combination of versions) and renders a
docker-compose.yml and .env per project. Compose handles the start order:
Auth waits for Postgres to be healthy, the gateway waits for Studio, and so on.
Requirements¶
- Docker Manager - enabling Supabase turns it on automatically (engine install, firewall integration) and installs the Docker Compose plugin if the host lacks it.
- Memory - a running project idles at roughly 2 GB. Creation is refused below 1.5 GB available; below 4 GB total a warning explains that a second project is unlikely to fit.
- Disk - at least 5 GB and 10 % free on the filesystem holding
/srv/supabase. The first start of a project downloads about 2.5 GB of images.
The Supabase screen shows all of this on its status cards and refuses to open the create dialog while a requirement is unmet.
Creating a project¶
Supabase → + New Project
| Field | Meaning |
|---|---|
| Project name | Shown in the panel and as the default project name in Studio. |
| Slug | Folder name under /srv/supabase/ and prefix for the containers. Derived from the name if left empty. |
| Public URL | How clients reach the API and Studio. Defaults to http://<server-ip>:<port>. Set a domain once a TLS proxy forwards to the project's port. |
| Studio login user | Basic-auth user for the dashboard (password is generated). |
| Publish Postgres on a port | Off by default. On: Postgres is reachable directly (psql, pgAdmin, apps on other servers) on a second allocated port. This can only be chosen at creation. |
| Edge Functions | Runs the Deno runtime container. |
| Auto-confirm email sign-ups | On by default: no SMTP is configured, so confirmation mails cannot be sent yet. |
Ports are allocated automatically starting at 8000 (API) and 5433 (Postgres), skipping anything already in use, and opened in CSF, firewalld or ufw.
Creation returns immediately; the services start in the background and the page refreshes itself every few seconds until the project is running. If the start fails, the project shows Error with the last lines of compose output, and a critical panel notification is raised.
Keys & connection¶
Every project card has Keys & connection:
- API URL - the
supabaseUrlfor client libraries. REST at/rest/v1, Auth at/auth/v1, Storage at/storage/v1, Realtime at/realtime/v1, Functions at/functions/v1. - anon key - public; safe to ship in apps. Access is limited by row-level security.
- service_role key and JWT secret - bypass every rule. Server-side only, never in a client. Shown masked; reveal or copy explicitly.
- Studio - the dashboard at the API URL's root, behind the basic-auth login shown there.
- Postgres - the connection string when the port is published, otherwise the internal password only.
Lifecycle¶
| Action | What happens |
|---|---|
| Start | docker compose up -d - creates or starts every container. |
| Stop | Stops the containers; data and configuration stay. |
| Restart | Restarts every container. |
| Edit | Rewrites the configuration and recreates only the containers whose settings changed. Name, public URL, Edge Functions and email auto-confirm can be changed. |
| Delete | Removes the containers and closes the firewall ports. The data folder stays for manual recovery unless Also delete all data is ticked (then the slug must be typed to confirm). |
Logs shows the last lines of any service, or of all of them. Services lists each container with its state and health.
Only one operation runs on a project at a time; a second request while one is in flight is answered with busy.
Where things live¶
/srv/supabase/<slug>/
docker-compose.yml rendered by the panel, rewritten on every edit
.env all secrets (mode 600)
volumes/db/data/ the Postgres data directory
volumes/storage/ uploaded files
volumes/db/*.sql upstream init scripts (run once, on first start)
volumes/api/envoy/ gateway configuration
volumes/functions/ edge functions (main/index.ts is the router)
Compose project name: supabase-<slug>; containers are named
supabase-<slug>-<service>-1. They also appear in the Docker Manager screen,
but manage them from here.
Versions and upgrades¶
Image tags are pinned as a set, taken from one commit of
supabase/supabase; the exact snapshot is shown at the bottom of the Supabase
screen. Supabase tests that combination together, so the panel never upgrades a
single service on its own. A newer panel release may move the pins; existing
projects keep running on their current images until you press Start (which
applies the new pins) - back up first.
Not yet in this version¶
- Attaching a domain with automatic TLS (put the project behind a proxy for now and set the public URL accordingly).
- SMTP settings for Auth (hence auto-confirm defaulting to on).
- Scheduled backups of project databases into the panel's backup system.
- The Supavisor connection pooler, analytics and log aggregation. The database schemas they need are created at first start, so they can be added to an existing project later without re-initialising it.
Security¶
- Requires the Supabase permission (Containers group in the user editor) and superuser status; the plugin must be enabled.
- All secrets are generated with a cryptographic random source, per project,
and are alphanumeric so they never need quoting in
.envor connection URLs. - Studio is protected by basic auth at the gateway. The API ports are open to the internet by design (that is what clients connect to); row-level security in Postgres is what protects your data, exactly as on hosted Supabase.
- Deleting with data removes
/srv/supabase/<slug>and the named volumes; the panel refuses to remove any path outside/srv/supabase.