PostgreSQL Docker image with repmgrd for automatic failover
This is heavily based on 2ndQuadrant's blog post on the topic), but:
REPMGR_PASSWORDCREATE EXTENSION recall, it's entirely inactive.Environment:
This docker image uses the following environment variables (with their defaults if applicable):
REPMGR_USER=repmgrREPMGR_DB=repmgrREPMGR_PASSWORD (required)pwgen -n 24 1 to generate a random one (and make sure you use the same one on all your nodesNODE_HOST=conninfo string (used by other nodes to connect to this one.hostname -f is used
Make sure you use a hostname the others can resolve (or an IP address)WITNESS=
If non-empty, this node is set up as witness node (i.e. won't hold actual data but still has a vote in leader election).Content type
Image
Digest
Size
160.6 MB
Last updated
over 8 years ago
docker pull mreithub/postgres-repmgr