docker-postgres-replication

Postgres 9.6 & 9.5 Dockerized w/ Replication. Master/Slave setup in 30 seconds.

  • 所有者: DanielDent/docker-postgres-replication
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Postgres 9.6 Dockerized w/ Replication

Master/Slave Postgres Replication in 30 seconds.

  • Quickstart: docker-compose up
  • For production, use docker-compose, Kubernetes, Rancher, Tutum, other PaaS tooling, ... or roll your own.
  • To see container environment variable requirements, see docker-compose.yml.
  • To demonstrate multiple slaves:
    • docker-compose up
    • docker-compose scale pg-slave=3

Notes

  • No additional replication user is setup - the postgres admin user is used. This means the superuser credentials must be identical on the master and all slaves.
  • setup-replication.sh is only executed when a container's data volume is first initialized.
  • REPLICATE_FROM environment variable is only used during container initialization - if the master changes after the database has been initialized, you'll need to manually adjust the recovery.conf file in the slave containers' data volume.
  • Configuration:

主要指標

概覽
名稱與所有者DanielDent/docker-postgres-replication
主編程語言Shell
編程語言Shell (語言數: 1)
平台
許可證
所有者活动
創建於2015-12-04 10:43:54
推送於2022-10-17 04:01:33
最后一次提交2016-11-17 09:12:23
發布數0
用户参与
星數212
關注者數10
派生數92
提交數14
已啟用問題?
問題數13
打開的問題數6
拉請求數2
打開的拉請求數4
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?