Skip to content

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

fix: add to postgres's search_path

Timothy Lina046aff038d3
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index 2acc9b9dfc1..ad7bbcc0857 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -1,14 +1,15 @@
version: '3.6'
services:
kong:
- build:
- context: ./kong
- environment:
- KONG_DECLARATIVE_CONFIG: /var/lib/kong/kong.yml
- KONG_PLUGINS: request-transformer,cors,key-auth,http-log
- ports:
- - 8000:8000/tcp
- - 8443:8443/tcp
+ container_name: supabase-kong
+ build:
+ context: ./kong
+ environment:
+ KONG_DECLARATIVE_CONFIG: /var/lib/kong/kong.yml
+ KONG_PLUGINS: request-transformer,cors,key-auth,http-log
+ ports:
+ - 8000:8000/tcp
+ - 8443:8443/tcp
auth:
image: supabase/gotrue:latest
ports:
@@ -31,6 +32,7 @@ services:
depends_on:
- db
rest:
+ container_name: supabase-rest
image: postgrest/postgrest:latest
ports:
- '3000:3000'
@@ -43,6 +45,7 @@ services:
PGRST_DB_ANON_ROLE: postgres
PGRST_JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-long
realtime:
+ container_name: supabase-realtime
image: supabase/realtime:latest
ports:
- '4000:4000'
@@ -61,6 +64,7 @@ services:
SECURE_CHANNELS: 'false'
JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-long
db:
+ container_name: supabase-db
build:
context: ./postgres
ports:
diff --git a/docker/postgres/auth-schema.sql b/docker/postgres/auth-schema.sql
index 9b1ae724cad..96792d06328 100644
--- a/docker/postgres/auth-schema.sql
+++ b/docker/postgres/auth-schema.sql
@@ -88,3 +88,4 @@ $$ language sql stable;
GRANT ALL PRIVILEGES ON SCHEMA auth TO postgres;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA auth TO postgres;
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA auth TO postgres;
+ALTER ROLE postgres SET search_path = "$user", public, auth;
\ No newline at end of file