Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xenit-eu/docker-patroni
Project to build image of PostgreSQL with a Patroni
https://github.com/xenit-eu/docker-patroni
patroni
Last synced: 6 days ago
JSON representation
Project to build image of PostgreSQL with a Patroni
- Host: GitHub
- URL: https://github.com/xenit-eu/docker-patroni
- Owner: xenit-eu
- License: apache-2.0
- Created: 2019-08-08T13:27:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T08:21:21.000Z (about 1 year ago)
- Last Synced: 2024-11-07T10:32:31.581Z (about 2 months ago)
- Topics: patroni
- Language: Shell
- Homepage:
- Size: 179 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Patroni Docker Image
- [X] Update components
- [X] Add license
- [x] Update README
- [X] Extend with High Availability setup
- [ ] Add tests for the features to be used in production## Configuration
### patroni
#### Config directory
This image uses a config directory (/config/patroni) instead of patroni.yaml. All YAML files in this directory are loaded one by one in sorted order. In case a key is defined in multiple files, the occurrence in the last file takes precedence. The image contains a basic configuration 00_patroni.yaml.
Following configuration parameters should be set by the user of this image via environment variables or an additional config file:
- PATRONI_NAME
- PATRONI_SCOPE
- PATRONI_POSTGRESQL_CONNECT_ADDRESS
- PATRONI_RESTAPI_CONNECT_ADDRESS#### Config file
This image can also be configured with the complete configuration in a config file /config/patroni.yml. If this file exists directory /config/patroni is not used.
### patronictl
patronictl.yaml is no longer needed.
## Customisation
Scripts can be run after bootstrapping by adding them to /post_init. When the image is configured with a config file instead of a config directory, the config file should contain option "post_init: /post-init.sh" in thte bootstrap section.
---