Postgres 容器 Docker 解决方案
https://github.com/ccakes/nomad-pgsql-patroni
Highly available elephant herd: HA PostgreSQL cluster using Docker
https://github.com/zalando/spilo
HA 解决方案
https://github.com/bitnami/containers/tree/main/bitnami/postgresql-repmgr
patroni 方案
https://github.com/zalando/patroni/blob/master/docker-compose.yml
Cluster 解决方案 (不支持 Docker)
Patroni + HAProxy + Etcd + PgBouncer
https://github.com/vitabaks/postgresql_cluster
其他方案
https://www.jianshu.com/p/2fd3f4096493
https://blog.csdn.net/fly910905/article/details/125291186
https://zhuanlan.zhihu.com/p/640147253