#!/bin/bash # 添加 pg_hba 复制访问规则(在 docker-entrypoint 初始化后执行) echo "host replication all 0.0.0.0/0 md5" >> "$PGDATA/pg_hba.conf"