Skip to content

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

Moves the docker files back to the original location (we have links everywhere)

Paul Copplestone9131e670f267
diff --git a/.gitignore b/.gitignore
index dac19098747..739cd028403 100644
--- a/.gitignore
+++ b/.gitignore
@@ -103,5 +103,6 @@ typings/
.vercel
#include template .env file for docker-compose
+!docker/.env
!docker/supabase/.env
!docker/supabase-traefik/.env
diff --git a/docker/supabase/.env b/docker/.env
similarity index 62%
rename from docker/supabase/.env
rename to docker/.env
index d406128c932..673e4e4be1b 100644
--- a/docker/supabase/.env
+++ b/docker/.env
@@ -1,10 +1,9 @@
#fill with random passwords
-OPERATOR_TOKEN=
+OPERATOR_TOKEN=super-secret-operator-token
-JWT_SECRET=
+JWT_SECRET=super-secret-jwt-token-with-at-least-32-characters-long
-#string length 100 didnt work as password for me; length 50 did it
-POSTGRES_PASSWORD=
+POSTGRES_PASSWORD=postgres
# some smtp server to send your auth-mails with
SMTP_HOST=mail.example.com
diff --git a/docker/supabase/README.md b/docker/README.md
similarity index 92%
rename from docker/supabase/README.md
rename to docker/README.md
index 695e8242706..bf27ce6c14f 100644
--- a/docker/supabase/README.md
+++ b/docker/README.md
@@ -1,11 +1,10 @@
-
-## Docker
+# Supabase Docker
You can run Supabase on your local machine using `docker-compose`:
- Add passwords to the .env file
-- Starting all services: `docker-compose up -d`
+- Starting all services: `docker-compose up`
- Stopping all services: `docker-compose down`
**Usage**
diff --git a/docker/supabase/docker-compose.yml b/docker/docker-compose.yml
similarity index 96%
rename from docker/supabase/docker-compose.yml
rename to docker/docker-compose.yml
index db8bffb0d73..6a5da14d817 100644
--- a/docker/supabase/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -3,7 +3,7 @@ services:
kong:
container_name: supabase-kong
build:
- context: ../dockerfiles/kong
+ context: ./dockerfiles/kong
environment:
KONG_DECLARATIVE_CONFIG: /var/lib/kong/kong.yml
KONG_PLUGINS: request-transformer,cors,key-auth,http-log
@@ -74,7 +74,7 @@ services:
db:
container_name: supabase-db
build:
- context: ../dockerfiles/postgres
+ context: ./dockerfiles/postgres
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
command: