docker-postgres-replication

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

  • Owner: DanielDent/docker-postgres-replication
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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:

Main metrics

Overview
Name With OwnerDanielDent/docker-postgres-replication
Primary LanguageShell
Program languageShell (Language Count: 1)
Platform
License:
所有者活动
Created At2015-12-04 10:43:54
Pushed At2022-10-17 04:01:33
Last Commit At2016-11-17 09:12:23
Release Count0
用户参与
Stargazers Count212
Watchers Count10
Fork Count92
Commits Count14
Has Issues Enabled
Issues Count13
Issue Open Count6
Pull Requests Count2
Pull Requests Open Count4
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private