File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -226,8 +226,8 @@ docker_setup_db() {
226
226
docker_setup_env () {
227
227
file_env ' POSTGRES_PASSWORD'
228
228
229
- file_env ' POSTGRES_USER' ' postgres '
230
- file_env ' POSTGRES_DB' " $POSTGRES_USER "
229
+ file_env ' POSTGRES_USER' ' supabase_admin '
230
+ file_env ' POSTGRES_DB' ' postgres '
231
231
file_env ' POSTGRES_INITDB_ARGS'
232
232
: " ${POSTGRES_HOST_AUTH_METHOD:= } "
233
233
Original file line number Diff line number Diff line change 5
5
create publication supabase_realtime;
6
6
7
7
-- Supabase super admin
8
- create user supabase_admin ;
9
8
alter user supabase_admin with superuser createdb createrole replication bypassrls;
10
9
11
10
-- Supabase replication user
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ set -eu
13
13
# 0 if migration succeeds, non-zero on error.
14
14
# ######################################
15
15
16
+ psql -v ON_ERROR_STOP=1 --no-password --no-psqlrc -U supabase_admin -d postgres -c " create role postgres superuser login password '$POSTGRES_PASSWORD '"
17
+
16
18
export PGDATABASE=" ${POSTGRES_DB:- postgres} "
17
19
export PGHOST=" ${POSTGRES_HOST:- localhost} "
18
20
export PGPORT=" ${POSTGRES_PORT:- 5432} "
You can’t perform that action at this time.
0 commit comments