Skip to content

PostgreSQL HA Cluster with Patroni inside Docker

License

Notifications You must be signed in to change notification settings

Damir37/patroni-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Patroni-Docker

Overview

Patroni-Docker is a project aimed at simplifying the deployment and management of a PostgreSQL high-availability cluster using Patroni within Docker containers. Patroni is a template for PostgreSQL HA using Python and ZooKeeper, etcd, or Consul for the coordination and consensus.

Prerequisites:

  • Docker installed on your system.
  • Basic understanding of Docker and PostgreSQL concepts.

Examples

Ansible

For our example, we will take three nodes and run etcd + patroni clusters on them. We will also configure haproxy running on other nodes for load balancing. I deployed with ansilbe.

Ansible example here

Docker Compose

Docker Compose example here

About

PostgreSQL HA Cluster with Patroni inside Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%