From 5d39b5283ad408d5f090f0da40704eb30a34faaf Mon Sep 17 00:00:00 2001 From: hailin Date: Sat, 17 May 2025 17:17:23 +0800 Subject: [PATCH] . --- supabase/postgres/supervisord.conf | 4 +--- supabase/postgres/wrapper.sh | 8 +------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/supabase/postgres/supervisord.conf b/supabase/postgres/supervisord.conf index 062676f..6614b20 100644 --- a/supabase/postgres/supervisord.conf +++ b/supabase/postgres/supervisord.conf @@ -21,9 +21,7 @@ user=root autorestart=true stdout_logfile=/var/log/postgres.out.log stderr_logfile=/var/log/postgres.err.log -environment=POSTGRES_PASSWORD="postgres",POSTGRES_USER="supabase_admin",POSTGRES_DB="postgres",PGDATA="/var/lib/postgresql/data" - - +environment=POSTGRES_PASSWORD="postgres" [program:postgrest] command=/bin/bash /supabase/postgrest/wrapper.sh diff --git a/supabase/postgres/wrapper.sh b/supabase/postgres/wrapper.sh index 0a3d1e2..1c6d72f 100644 --- a/supabase/postgres/wrapper.sh +++ b/supabase/postgres/wrapper.sh @@ -1,10 +1,4 @@ #!/bin/bash set -e -# 设置 PostgreSQL 初始化关键变量(如果没从环境变量中设定) -export POSTGRES_USER="${POSTGRES_USER:=supabase_admin}" -export POSTGRES_PASSWORD="${POSTGRES_PASSWORD:=postgres}" -export POSTGRES_DB="${POSTGRES_DB:=postgres}" -export PGDATA="${PGDATA:=/var/lib/postgresql/data}" - -exec /usr/local/bin/docker-entrypoint.sh postgres -D "$PGDATA" \ No newline at end of file +exec /usr/local/bin/docker-entrypoint.sh postgres -D /etc/postgresql \ No newline at end of file