Service type
Supabase PostgreSQL service
Self-hosted PostgreSQL database service configured for Supabase, with the roles and extensions required by its application services.
You add this service to a stack, where you choose its version and resources. Each app environment can override them.
On Wodby
How Supabase PostgreSQL runs on Wodby
What the image provisions
The image is the Supabase PostgreSQL image with Wodby backup, import and readiness operations. On an empty data directory it runs Supabase's own initialization: the reserved roles, internal schemas and extensions of the Supabase bundle.
- The database is always
postgres. The administrator issupabase_admin; applications connect aspostgres. Both use the same generated password (tokenpostgres_password, in the container asPOSTGRES_PASSWORD). - The JWT secret is generated once per environment (token
jwt_secret, in the container asJWT_SECRET);JWT_EXPsets the token lifetime. - Wodby declares no create or drop actions for databases and users on this service: these resources belong to Supabase. Application tables and policies are managed with Supabase migrations, not by adding databases or reserved roles.
- Keep
POSTGRES_DBand the data directory as they are; the image requires these values.
How a linked service reaches it
- Host: the name of this app service inside the environment. Port:
5432. The port is private: it is reachable inside the cluster and gets no public route. - The Supabase service linked to this one receives the host, the port,
postgres_passwordandjwt_secretthrough itsdblink. The password and the JWT secret are owned by this service; change them here, never on the Supabase service alone.
Data, backups and imports
- The
datavolume is mounted at/var/lib/postgresql. It holds the PostgreSQLdata/directory andwodby-keys/with the root encryption key. Both must stay together: an existing database refuses to start when its key is missing. - The backup is a
.tar.gzwith custom-format dumps of all non-template databases, role attributes and memberships, the root encryption key and a checksummed inventory. It contains secrets. Table patterns in the tokenexclude_tables(separated by;) keep their definition and lose their rows. The backup is staged on the data volume, so it needs free space there. - The import accepts only a
.tar.gzor.tgzbackup made by this service with the same Supabase bundle. It is restored into a new, empty data volume before the server accepts connections. An ordinary SQL dump is not accepted. After the import the built-in logins use the target environment'spostgres_passwordand the JWT settings follow itsjwt_secret; passwords of custom roles come from the backup. - A failed initialization or import leaves a marker that blocks a normal start. The fix is a new import on a fresh volume, not removing the marker.
- The database backup does not include storage objects or the Supabase service's tokens.
Check the result
In the database container, supabase-ops check-ready succeeds when the database is ready; psql -c '\du' lists the roles (the container's PG* variables select the administrator and the database).
Overview
Technical profile of Supabase PostgreSQL
Versions
Source repository
Public Helm chart
Persistent volumes
Database page
Stacks
Stacks that include Supabase PostgreSQL
Data
Backups and data import for Supabase PostgreSQL
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 PostgreSQL service configuration
Volumes