Created
October 26, 2021 14:28
-
-
Save mskoroglu/7c57ea2886e7cb6898187cf59a204dcc to your computer and use it in GitHub Desktop.
Bitnami PostgreSQL Images - Pgpool-II & repmgr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
volumes: | |
pg_0_data: | |
driver: local | |
pg_1_data: | |
driver: local | |
services: | |
pg-0: | |
image: bitnami/postgresql-repmgr:11 | |
restart: always | |
ports: | |
- "54320:5432" | |
volumes: | |
- pg_0_data:/bitnami/postgresql | |
environment: | |
- POSTGRESQL_POSTGRES_PASSWORD=password | |
- POSTGRESQL_PASSWORD=password | |
- REPMGR_PASSWORD=password | |
- REPMGR_PRIMARY_HOST=pg-0 | |
- REPMGR_PARTNER_NODES=pg-0,pg-1 | |
- REPMGR_NODE_NAME=pg-0 | |
- REPMGR_NODE_NETWORK_NAME=pg-0 | |
pg-1: | |
image: bitnami/postgresql-repmgr:11 | |
restart: always | |
ports: | |
- "54321:5432" | |
volumes: | |
- pg_1_data:/bitnami/postgresql | |
environment: | |
- POSTGRESQL_POSTGRES_PASSWORD=password | |
- POSTGRESQL_PASSWORD=password | |
- REPMGR_PASSWORD=password | |
- REPMGR_PRIMARY_HOST=pg-0 | |
- REPMGR_PARTNER_NODES=pg-0,pg-1 | |
- REPMGR_NODE_NAME=pg-1 | |
- REPMGR_NODE_NETWORK_NAME=pg-1 | |
pgpool: | |
image: bitnami/pgpool:4 | |
restart: always | |
ports: | |
- "5432:5432" | |
environment: | |
- PGPOOL_BACKEND_NODES=0:pg-0:5432,1:pg-1:5432 | |
- PGPOOL_SR_CHECK_USER=postgres | |
- PGPOOL_SR_CHECK_PASSWORD=password | |
- PGPOOL_ENABLE_LDAP=no | |
- PGPOOL_POSTGRES_USERNAME=postgres | |
- PGPOOL_POSTGRES_PASSWORD=password | |
- PGPOOL_ADMIN_USERNAME=admin | |
- PGPOOL_ADMIN_PASSWORD=password | |
healthcheck: | |
test: [ "CMD", "/opt/bitnami/scripts/pgpool/healthcheck.sh" ] | |
interval: 10s | |
timeout: 5s | |
retries: 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment