11 lines
395 B
Bash
11 lines
395 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# 设置默认环境变量(可通过 supervisord 的 environment 覆盖)
|
|
export PGDATA="${PGDATA:-/var/lib/postgresql/data}"
|
|
export POSTGRES_USER="${POSTGRES_USER:-supabase_admin}"
|
|
export POSTGRES_PASSWORD="${POSTGRES_PASSWORD:-postgres}"
|
|
|
|
# 调用原始 docker-entrypoint.sh 脚本,传入 postgres 命令
|
|
exec /usr/local/bin/docker-entrypoint.sh postgres -D "$PGDATA"
|