App service
Services/Supabase

Supabase service

Self-hosted Supabase application backend service providing Auth, REST, Realtime, Storage, and Studio with a linked Supabase PostgreSQL database.

You add this service to a stack, where you choose its version and resources. Each app environment can override them.

On Wodby

How Supabase runs on Wodby

What Wodby sets up for a self-hosted Supabase project. Check it before generating API keys, configuring components one by one, or pointing an application at a component directly.

What runs

One Supabase project per environment, from the upstream self-hosted component images: a gateway (Envoy), Auth, REST (PostgREST), Realtime, Storage with imgproxy, postgres-meta and Studio, one instance each. Edge Functions, Supavisor and analytics are not part of this service, so Studio features that need them are unavailable.

How it is reached

  • Everything goes through the gateway: the service's endpoint http, port 8000. Inside the environment the host is this app service's name.
  • The public Supabase URL is the service's primary URL: it follows the service's route and is not set by hand.

Keys and passwords

Generated once per environment as tokens of this service and kept across restarts and upgrades:

  • publishable_key: for client applications, together with the public URL.
  • secret_key: for trusted server code only. It bypasses row level security and must not reach a browser build.
  • dashboard_password: the Studio password. The Studio user name is supabase.
  • signing_seed, secret_key_base, realtime_db_enc_key, pg_meta_crypto_key: internal signing and encryption material. Data encrypted with them cannot be read after they change.

Do not generate Supabase keys by hand or copy keys from another project.

Database link

The required db link accepts only the Supabase PostgreSQL service. Through it this service receives the database host and port, the database password and the JWT secret, which belong to the database service. The database is always postgres.

Settings and integrations

Configuration is changed on the service, not in component files:

  • Settings: site_url (the application's URL, where users land after email links and sign-in; if empty, the public Supabase URL is used, which opens Studio), redirect_urls, disable_signup, db_schemas (schemas exposed by the API), smtp_sender_email (required), smtp_sender_name, storage_bucket, s3_endpoint.
  • Integration smtp (required) sends the authentication email.
  • Integration s3 (optional) switches Storage to an S3 bucket: it sets AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, REGION and STORAGE_BACKEND. The bucket named in storage_bucket must already exist; s3_endpoint is for storage other than AWS. Objects already on the volume are not moved.

A new redirect target, such as a custom domain of the application, has to be added to redirect_urls.

Data and backups

  • Volume storage: objects of the filesystem storage backend. Volume studio: Studio snippets.
  • Backups objects (storage volume) and snippets (Studio volume). An S3 bucket is not backed up by Wodby.
  • Imports objects and snippets replace the whole content of the storage and Studio volumes with the archive, removing files that are not in it. Restore objects together with the database backup from the same point; files without database metadata are not visible, and metadata without files fails on download.
  • Table data, users and storage metadata are in the linked database and are backed up there. A consistent recovery point needs the database backup, the objects and this service's tokens together.

Overview

Technical profile of Supabase

The versions are the ones you can select for Supabase in a stack or an app environment. The service itself is published in revisions, and a stack references a specific revision.

Service type

App service

Versions

0.8.1

Persistent volumes

Storage objects, Studio snippets

Stacks

Stacks that include Supabase

This public stack includes Supabase. You can create an app from a public stack as it is, or add the service to a stack of your own.

Email

SMTP providers for Supabase

Supabase can send outgoing mail through an SMTP provider. You connect the provider as an integration and attach it to the service.

Data

Backups and data import for Supabase

The Supabase service defines how its data is backed up and imported. You run a backup or an import from the app environment that the service belongs to.

Manual and scheduled backups

Run a backup when you need one, or set a schedule in a backup preset.

Import from an archive, a URL, or a backup

An import takes an uploaded archive, a public URL, or a completed backup of a compatible service.

Where archives are stored

Wodby writes each archive to Wodby Blob Storage or to a bucket at a storage provider that you connect as an integration.

Configuration

Supabase service configuration

The Supabase service declares the following. Where a value can be changed, a stack sets it and each app environment can override it.

Technical domains

Wodby gives each public HTTP port a technical domain with a TLS certificate and renews the certificate. A port that the service marks private gets no domain. You can add custom domains.

Volumes

Storage objects, Studio snippets

Settings

8 settings that a stack or an app environment can change.

Service links

Each link is a connection from Supabase to another service. A stack sets which service a link points to. The cards list the public services that can satisfy each link.