The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Formatting on the self hosting, adding details for email and api keys
Paul Copplestone418b5f182a9a
diff --git a/web/docs/faq.md b/web/docs/faq.mdindex dceda42a62d..2c2cb960dde 100755--- a/web/docs/faq.md+++ b/web/docs/faq.md@@ -20,7 +20,7 @@ We started Supabase because we love the functionality of Firebase, but we person### How do I host Supabase?-Supabase is an amalgamation of 5 open source tools (and growing). Some of these tools are made by Supabase (like our [Realtime Server](https://github.com/supabase/realtime)), some we support indirectly (like [PostgREST](http://postgrest.org/en/v7.0.0/)), and some are 3rd-party tools (like [Kong](https://github.com/Kong/kong)). All of the tools we use in Supabase are MIT, Apache 2.0, or PostgreSQL licensed. You can use the docker-compose script [here](https://github.com/supabase/supabase/tree/master/docker) to build Supabase on your own environment.+Supabase is an amalgamation of 5 open source tools (and growing). Some of these tools are made by Supabase (like our [Realtime Server](https://github.com/supabase/realtime)), some we support indirectly (like [PostgREST](http://postgrest.org/en/v7.0.0/)), and some are 3rd-party tools (like [Kong](https://github.com/Kong/kong)). All of the tools we use in Supabase are MIT, Apache 2.0, or PostgreSQL licensed. You can use the docker-compose script [here](https://github.com/supabase/supabase/tree/master/docker) to build Supabase on your own environment, and find detailed instructions [here](/docs/guides/self-hosting).### Do you support `[some other database]`?diff --git a/web/docs/guides/self-hosting.mdx b/web/docs/guides/self-hosting.mdxindex c6111f23514..0268e51b335 100644--- a/web/docs/guides/self-hosting.mdx+++ b/web/docs/guides/self-hosting.mdx@@ -56,7 +56,7 @@ git sparse-checkout init --conegit sparse-checkout set docker```-### Running Supabase+## Running SupabaseNow that you have the Docker set up on your local machine, you can start it here by running@@ -64,7 +64,7 @@ Now that you have the Docker set up on your local machine, you can start it heredocker-compose up```-### Configuring each service+## Configuring each serviceSupabase 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.@@ -77,8 +77,25 @@ Here are a list of environment variables for each service:- [GoTrue](https://github.com/supabase/gotrue)- [Kong](https://docs.konghq.com/install/docker/)+### Configuring email-### Deploying+GoTrue 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 `docker-compose.yml` under `services.auth.environment`:++- `GOTRUE_SMTP_HOST` - The mail server hostname to send emails through.+- `GOTRUE_SMTP_PORT` - The port number to connect to the mail server on.+- `GOTRUE_SMTP_USER` - If the mail server requires authentication, the username to use.+- `GOTRUE_SMTP_PASS` - If the mail server requires authentication, the password to use.++### 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/).+++## DeployingSee the following guides to deploy Docker Compose setup using your preferred tool and platform: