Тип сервиса
Сервис Supabase PostgreSQL
Самостоятельно размещаемый сервис базы данных PostgreSQL, настроенный для Supabase, с ролями и расширениями, которые нужны его сервисам приложений.
Вы добавляете этот сервис в стек и выбираете там его версию и ресурсы. Каждое окружение может их переопределить.
В StackMaster
Как Supabase PostgreSQL работает в StackMaster
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).
Обзор
Технический профиль Supabase PostgreSQL
Версии
Репозиторий исходного кода
Публичный Helm-чарт
Постоянные тома
Страница базы данных
Стеки
Стеки, в которые входит Supabase PostgreSQL
Данные
Резервные копии и импорт данных: Supabase PostgreSQL
Резервные копии вручную и по расписанию
Создавайте резервную копию, когда она нужна, или задайте расписание в пресете резервного копирования.
Импорт из архива, по URL или из резервной копии
Источником импорта может быть загруженный архив, публичный URL или готовая резервная копия совместимого сервиса.
Где хранятся архивы
StackMaster записывает каждый архив в StackMaster Blob Storage или в бакет у провайдера хранилища, подключённого как интеграция.
Конфигурация
Конфигурация сервиса Supabase PostgreSQL
Тома