The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: update self-host overview and docker guides
Wen Bo Xie2e8192fff26a
diff --git a/apps/reference/docs/guides/hosting/docker.mdx b/apps/reference/docs/guides/hosting/docker.mdxindex 886a1e22a52..1b0ea6fa0d6 100644--- a/apps/reference/docs/guides/hosting/docker.mdx+++ b/apps/reference/docs/guides/hosting/docker.mdx@@ -95,6 +95,11 @@ POSTGRES_PORT=5432Once you have done this, you can safely comment out the `db` section of the `docker-compose` file, and remove any instances where the services `depends_on` the `db` image.+### Setting database's `log_min_messages`++By default, `docker-compose` sets the database's `log_min_messages` configuration to `fatal` to prevent redundant logs generated by Realtime.+However, you might miss important log messages such as database errors. Configure `log_min_messages` based on your needs.+## DeployingSee the following guides to deploy Docker Compose setup using your preferred tool and platform:diff --git a/apps/reference/docs/guides/hosting/overview.mdx b/apps/reference/docs/guides/hosting/overview.mdxindex 3d6dd445a77..f8f9c96a88a 100644--- a/apps/reference/docs/guides/hosting/overview.mdx+++ b/apps/reference/docs/guides/hosting/overview.mdx@@ -46,7 +46,7 @@ Each system has a number of configuration options which can be found in the releIt is recommended that you decouple your database from the middleware so that you can upgrade the middleware without any downtime.The "middleware" is everything except Postgres, and it should work with any Postgres provider (such as AWS RDS), or your own Postgres cluster.-### Database Extensions+### ExtensionsSupabase requires some Postgres extensions to be enabled by default for the API and Auth system to work. You can find the extensions inside the[schema initialization script](https://github.com/supabase/supabase/blob/master/docker/volumes/db/init/00-initial-schema.sql).@@ -69,7 +69,7 @@ For UUID functions, required for PostgreSQL <13.For working with JWT and Auth functions.-### Database Roles+### RolesSupabase creates several default roles in your Postgres database. To restore defaults at any time you can run the commands inside the[schema initialization script](https://github.com/supabase/supabase/blob/master/docker/volumes/db/init/00-initial-schema.sql).@@ -111,6 +111,10 @@ For running commands via the Supabase UI.Supabase Administrative role for maintaining your database.+### Realtime Logs++Set your database's `log_min_messages` configuration to `fatal` to prevent redundant database logs generated by Realtime. However, you might miss important log messages such as database errors. Configure `log_min_messages` based on your needs.+## API KeysThe API Gateway (Kong) uses JWT to authenticate access through to the database. The JWT should correspond to a relevant Postgres Role,