Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

simplifies docker compose setup

Copple870caaacbec1
diff --git a/web/docs/guides/hosting/docker.mdx b/web/docs/guides/hosting/docker.mdx
index 957cf8b9873..838753ab0c8 100644
--- a/web/docs/guides/hosting/docker.mdx
+++ b/web/docs/guides/hosting/docker.mdx
@@ -13,31 +13,34 @@ You need the following installed in your system:
- [Docker](https://docs.docker.com/engine/install/) and docker-compose
- [Git](https://git-scm.com/downloads)
-## Getting started
+## Quick Start
### Get the code
Checkout the docker directory in the Supabase repo:
```sh
+# Get the code
git clone --depth 1 https://github.com/supabase/supabase
+
+# Go to the docker folder
cd supabase/docker
+
+# Copy the fake env vars
+cp .env.example .env
+
+# Start
+docker-compose up
```
-### Manage Secrets
+Now visit [http://localhost:3000](http://localhost:3000) to start using Supabase Studio.
-Copy `.env.example` to `.env` and populate the values.
-```sh
-cp .env.example .env
-```
+## Securing your setup
-In particular, these are required:
+While we provided you with some example secrets for getting started, you should NEVER deploy your Supabase setup using the defaults we have provided.
-- `POSTGRES_PASSWORD`: the password for the `postgres` role
-- `JWT_SECRET`: used by PostgREST and GoTrue, among others
-- `SITE_URL`: the base URL of your site
-- `SMTP_*`: mail server credentials
+Please follow these steps to secure your Docker setup. We [strongly recommend](/docs/guides/hosting/overview#managing-your-secrets) using a secrets manager when deploying to production.
### Generate API Keys
@@ -45,25 +48,21 @@ Use your `JWT_SECRET` to generate a `anon` and `service` API keys using the [JWT
Replace the values in these files:
-- `docker-compose.yml`:
+- `.env`:
- `ANON_KEY` - replace with an `anon` key
- - `SERVICE_KEY` - replace with a `service` key
+ - `SERVICE_ROLE_KEY` - replace with a `service` key
- `volumes/kong.yml`
- `anon` - replace with an `anon` key
- `service_role` - replace with a `service` key
-### Start
-
-You can now start Supabase:
-
-```sh
-docker-compose up
-```
-
-Your database will be persisted in `volumes/db/data`, and your storage objects in `volumes/storage`.
+### Update Secrets
-Try out the examples in `supabase/examples` to verify if it works correctly!
+Update the `.env` file with your own secrets. In particular, these are required:
+- `POSTGRES_PASSWORD`: the password for the `postgres` role.
+- `JWT_SECRET`: used by PostgREST and GoTrue, among others.
+- `SITE_URL`: the base URL of your site.
+- `SMTP_*`: mail server credentials. You can use any SMTP server.
## Configuration
diff --git a/web/docs/guides/hosting/overview.mdx b/web/docs/guides/hosting/overview.mdx
index 0a5b25a2e3a..eab6c17b5e3 100644
--- a/web/docs/guides/hosting/overview.mdx
+++ b/web/docs/guides/hosting/overview.mdx
@@ -13,21 +13,6 @@ There are several ways to use Supabase:
- [Docker](/docs/guides/hosting/docker): deploy to your own infrastructure.
- Kubernetes: coming soon.
-#### Before you begin
-
-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)]
-
-In the meantime, here are some suggestions for working with your Postgres Database:
-
-- `pgadmin`: https://www.pgadmin.org
-- `dbeaver`: https://dbeaver.com
-- `BeeKeeper`: https://beekeeperstudio.io
-- `HeidiSQL`: https://heidisql.com
-- `Table Plus`: https://www.tableplus.io
-
-
## Architecture
Supabase is a combination of open source tools, each specifically chosen for Enterprise-readiness.