You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(QueuesSettings): skip PostgREST config update for self-hosted projects (supabase#40078)
* fix(QueuesSettings): skip PostgREST config update for self-hosted projects
* docs(queues): add guide to expose self-hosted queues
* feat(QueuesSettings): add docs link for exposing pgmq_public schema in self-hosted instance
* fix ui, open link in new tab
* fix lint issues
---------
Co-authored-by: Ali Waseem <[email protected]>
Co-authored-by: Andrey A. <[email protected]>
title: Expose Queues for local and self-hosted Supabase
3
+
subtitle: Learn how to expose Queues when running Supabase with Supabase CLI or Docker Compose
4
+
---
5
+
6
+
By default, local and self-hosted Supabase instances expose only core schemas like public and graphql_public.
7
+
To allow client-side consumers to use your queues, you have to add `pgmq_public` schema to the list of exposed schemas.
8
+
9
+
Before continuing, complete the step [Expose queues to client-side consumers](/docs/guides/queues/quickstart#expose-queues-to-client-side-consumers) from the Queues Quickstart guide. This creates the `pgmq_public` schema, which must exist before it can be exposed through the API.
10
+
11
+
<Admonitiontype="note">
12
+
13
+
You only need to expose the `pgmq_public` schema manually when running Supabase locally with the Supabase CLI or self-hosting using Docker Compose.
14
+
15
+
</Admonition>
16
+
17
+
## Expose Queues with Supabase CLI
18
+
19
+
When running Supabase locally with Supabase CLI, update your project's `config.toml` file.
20
+
Locate the `[api]` section and add `pgmq_public` to the list of schemas.
When running Supabase with Docker Compose, locate the `PGRST_DB_SCHEMAS` variable inside your `.env` file and add `pgmq_public` to it. This environment variable is passed to the `rest` service inside `docker-compose.yml`.
0 commit comments