The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: add to postgres's search_path
Timothy Lina046aff038d3
diff --git a/docker/docker-compose.yml b/docker/docker-compose.ymlindex 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/tcpauth:image: supabase/gotrue:latestports:@@ -31,6 +32,7 @@ services:depends_on:- dbrest:+ container_name: supabase-restimage: postgrest/postgrest:latestports:- '3000:3000'@@ -43,6 +45,7 @@ services:PGRST_DB_ANON_ROLE: postgresPGRST_JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-longrealtime:+ container_name: supabase-realtimeimage: supabase/realtime:latestports:- '4000:4000'@@ -61,6 +64,7 @@ services:SECURE_CHANNELS: 'false'JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-longdb:+ container_name: supabase-dbbuild:context: ./postgresports:diff --git a/docker/postgres/auth-schema.sql b/docker/postgres/auth-schema.sqlindex 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