#!/bin/bash set -e # 等待 postgres ready until pg_isready -h localhost -p 5432 -U postgres; do echo "Waiting for postgres..." sleep 1 done exec /usr/bin/postgrest