https://github.com/batonogov/patroni-docker
PostgreSQL HA Cluster with Patroni inside Docker
https://github.com/batonogov/patroni-docker
docker etcd haproxy patroni postgres postgresql
Last synced: over 1 year ago
JSON representation
PostgreSQL HA Cluster with Patroni inside Docker
- Host: GitHub
- URL: https://github.com/batonogov/patroni-docker
- Owner: batonogov
- License: mit
- Created: 2024-02-14T14:01:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-21T07:49:23.000Z (over 1 year ago)
- Last Synced: 2025-02-21T08:19:49.929Z (over 1 year ago)
- Topics: docker, etcd, haproxy, patroni, postgres, postgresql
- Language: Dockerfile
- Homepage:
- Size: 885 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](./examples/ansible)
### Docker Compose
[Docker Compose example here](./examples/docker)