The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Adds note on the quickstart
Paul Copplestoneb83638a1d317
diff --git a/docker/README.md b/docker/README.mdindex 0af087f422e..77e1970c4d7 100644--- a/docker/README.md+++ b/docker/README.md@@ -23,7 +23,7 @@ For better customization and security, please read the [self-hosting guide](http- Postgres: http://localhost:5432-#### With Javascript+### With Javascript```jsimport { createClient } from '@supabase/supabase-js'@@ -34,7 +34,7 @@ const SUPABASE_KEY = '<anon-apikey-from-kong.yml>'const supabase = createClient(SUPABASE_URL, SUPABASE_KEY)```-#### Full example+### Quickstart exampleOnce you have started all the services, you can use any of the examples in the `/examples` folder. For example:diff --git a/web/docs/guides/self-hosting.mdx b/web/docs/guides/self-hosting.mdxindex c96cdad0f76..7e7627d94dd 100644--- a/web/docs/guides/self-hosting.mdx+++ b/web/docs/guides/self-hosting.mdx@@ -9,14 +9,11 @@ However, if you want to configure and deploy it yourself, that's also possible.## Before you begin-If you are about to step through this Guide, please record your steps! You can help us improve by adding-missing details and fixing errors.-The self-hosted version of Supabase does not include a UI yet.-We are working on this in stages, starting with our [UI library](https://github.com/supabase/ui) and with a [WIP PR here](https://github.com/supabase/supabase/pull/2281)-([more context](https://github.com/supabase/supabase/discussions/1001#discussioncomment-558696)).+We are working on this in stages, starting with our [UI library](https://github.com/supabase/ui) and with a [WIP PR here](https://github.com/supabase/supabase/pull/2281).+[[more context](https://github.com/supabase/supabase/discussions/1001#discussioncomment-558696)]-In the meantime, here are some suggested tools for interacting with your Postgres Database:+In the meantime, here are some suggestions for working with your Postgres Database:- `pgadmin`: https://www.pgadmin.org- `dbeaver`: https://dbeaver.com@@ -54,19 +51,44 @@ git clone https://github.com/supabase/supabasecd supabase/docker```+## Running Locally++Now that you have the Docker set up on your local machine, you can start it here by running++```bash+docker-compose up+```++## Deploying-## Running Supabase+### Configuring each service-### (Optional) Update secrets+Supabase is made up of several services. We have prefilled the `docker-compose` file with all the configuration you need to get started.+If you would like to change any of the configuration, you can update the env variables in the `docker-compose` file.++Here are a list of environment variables for each service:++- [Postgres](https://hub.docker.com/_/postgres/)+- [PostgREST](https://postgrest.org/en/v7.0.0/configuration.html)+- [Realtime](https://github.com/supabase/realtime#server-set-up)+- [GoTrue](https://github.com/supabase/gotrue)+- [Storage](https://github.com/supabase/storage-api)+- [Kong](https://docs.konghq.com/install/docker/)++### Update secretsIf you are deploying to production, you should update the default [passwords and secrets](https://github.com/supabase/supabase/blob/master/docker/.env).-### (Optional) Update API keys+### Update API keys++All config for the API Gateway is stored in the `kong` directory. Inside `kong.yml` you'll find the routing for all services, the routing rules,+and down the bottom you'll find the JWTs capable of accessing services that require API Key access.++See the full docs [here](https://docs.konghq.com/hub/kong-inc/key-auth/).If you are deploying to production, you should encode a new `anon` and `service_role` API key and updatethem [here](https://github.com/supabase/supabase/blob/b1e99d2ce1f63ba728230fb53a6de444f60bce1f/docker/dockerfiles/kong/kong.yml#L42).-After you have regenerated the JWT secret in the step above, use a JWT generator (for example, using [jsonwebtoken.io](https://www.jsonwebtoken.io/)) to regenerate the API Keys using the payloads below:@@ -90,44 +112,14 @@ After you have regenerated the JWT secret in the step above, use a JWT generator"role": "service_role"}```---### Run the Docker set up--Now that you have the Docker set up on your local machine, you can start it here by running--```bash-docker-compose up-```--## Configuring each service--Supabase is made up of several services. We have prefilled the `docker-compose` file with all the configuration you need to get started.-If you would like to change any of the configuration, you can update the env variables in the `docker-compose` file.--Here are a list of environment variables for each service:--- [Postgres](https://hub.docker.com/_/postgres/)-- [PostgREST](https://postgrest.org/en/v7.0.0/configuration.html)-- [Realtime](https://github.com/supabase/realtime#server-set-up)-- [GoTrue](https://github.com/supabase/gotrue)-- [Storage](https://github.com/supabase/storage-api)-- [Kong](https://docs.konghq.com/install/docker/)### Configuring emailGoTrue requires an SMTP server to send emails for all authentication actions.You will need to provide the following [settings](https://github.com/supabase/gotrue#e-mail) inside the `.env` file [here](https://github.com/supabase/supabase/blob/027e7f7b97bbe7365db4f7f46abe480e05841006/docker/.env#L8).-### API Keys-All config for the API Gateway is stored in the `kong` directory. Inside `kong.yml` you'll find the routing for all services, the routing rules,-and down the bottom you'll find the JWTs capable of accessing services that require API Key access.--See the full docs [here](https://docs.konghq.com/hub/kong-inc/key-auth/).---## Deploying+### DeployingSee the following guides to deploy Docker Compose setup using your preferred tool and platform: