Add search_path parameter to supabase-auth env

To prevent querying wrong `users` table when public schema has table named `users`
This commit is contained in:
Sucipto committed 2021-09-01 09:34:37 +07:00
1 parent a99a89937a
commit 1f0820fcbd
1 file changed
+1 -1
+1 -1
View File
@@ -42,7 +42,7 @@ services:
GOTRUE_MAILER_AUTOCONFIRM: 'true'
GOTRUE_LOG_LEVEL: DEBUG
GOTRUE_OPERATOR_TOKEN: ${OPERATOR_TOKEN}
DATABASE_URL: 'postgres://postgres:${POSTGRES_PASSWORD}@db:${POSTGRES_PORT}/postgres?sslmode=disable'
DATABASE_URL: 'postgres://postgres:${POSTGRES_PASSWORD}@db:${POSTGRES_PORT}/postgres?sslmode=disable&search_path=auth'
rest:
container_name: supabase-rest