diff --git a/bitnami/pgpool/4/debian-11/Dockerfile b/bitnami/pgpool/4/debian-11/Dockerfile index cb5c41e87c88..0f1f81f413ac 100644 --- a/bitnami/pgpool/4/debian-11/Dockerfile +++ b/bitnami/pgpool/4/debian-11/Dockerfile @@ -5,7 +5,7 @@ ARG TARGETARCH LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \ org.opencontainers.image.description="Application packaged by Bitnami" \ org.opencontainers.image.licenses="Apache-2.0" \ - org.opencontainers.image.ref.name="4.4.2-debian-11-r2" \ + org.opencontainers.image.ref.name="4.4.2-debian-11-r3" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/pgpool" \ org.opencontainers.image.title="pgpool" \ org.opencontainers.image.vendor="VMware, Inc." \ diff --git a/bitnami/pgpool/4/debian-11/docker-compose.yml b/bitnami/pgpool/4/debian-11/docker-compose.yml index f64984d39ee5..87eb3e315d9c 100644 --- a/bitnami/pgpool/4/debian-11/docker-compose.yml +++ b/bitnami/pgpool/4/debian-11/docker-compose.yml @@ -12,11 +12,12 @@ services: - POSTGRESQL_PASSWORD=custompassword - POSTGRESQL_DATABASE=customdatabase - POSTGRESQL_NUM_SYNCHRONOUS_REPLICAS=1 - - REPMGR_PASSWORD=repmgrpassword - REPMGR_PRIMARY_HOST=pg-0 - REPMGR_PARTNER_NODES=pg-1,pg-0 - REPMGR_NODE_NAME=pg-0 - REPMGR_NODE_NETWORK_NAME=pg-0 + - REPMGR_USERNAME=repmgr + - REPMGR_PASSWORD=repmgrpassword pg-1: image: docker.io/bitnami/postgresql-repmgr:14 ports: @@ -29,25 +30,28 @@ services: - POSTGRESQL_PASSWORD=custompassword - POSTGRESQL_DATABASE=customdatabase - POSTGRESQL_NUM_SYNCHRONOUS_REPLICAS=1 - - REPMGR_PASSWORD=repmgrpassword - REPMGR_PRIMARY_HOST=pg-0 - REPMGR_PARTNER_NODES=pg-0,pg-1 - REPMGR_NODE_NAME=pg-1 - REPMGR_NODE_NETWORK_NAME=pg-1 + - REPMGR_USERNAME=repmgr + - REPMGR_PASSWORD=repmgrpassword pgpool: image: docker.io/bitnami/pgpool:4 ports: - 5432:5432 environment: - PGPOOL_BACKEND_NODES=0:pg-0:5432,1:pg-1:5432 - - PGPOOL_SR_CHECK_USER=customuser - - PGPOOL_SR_CHECK_PASSWORD=custompassword + - PGPOOL_SR_CHECK_USER=repmgr + - PGPOOL_SR_CHECK_PASSWORD=repmgrpassword - PGPOOL_ENABLE_LDAP=no - PGPOOL_POSTGRES_USERNAME=postgres - PGPOOL_POSTGRES_PASSWORD=adminpassword - PGPOOL_ADMIN_USERNAME=admin - PGPOOL_ADMIN_PASSWORD=adminpassword - PGPOOL_ENABLE_LOAD_BALANCING=yes + - PGPOOL_POSTGRES_CUSTOM_USERS=customuser + - PGPOOL_POSTGRES_CUSTOM_PASSWORDS=custompassword healthcheck: test: ["CMD", "/opt/bitnami/scripts/pgpool/healthcheck.sh"] interval: 10s diff --git a/bitnami/pgpool/README.md b/bitnami/pgpool/README.md index 98d738ec8d75..0520e06fa837 100644 --- a/bitnami/pgpool/README.md +++ b/bitnami/pgpool/README.md @@ -237,7 +237,7 @@ Pgpool configuration: - `PGPOOL_PASSWORD_FILE`: Path to a file that contains the password for the custom user set in the `PGPOOL_USERNAME` environment variable. This will override the value specified in `PGPOOL_PASSWORD`. No defaults. - `PGPOOL_SR_CHECK_PERIOD`: Specifies the time interval in seconds to check the streaming replication delay. Defaults to `30`. -- `PGPOOL_SR_CHECK_USER`: Username to use to perform streaming checks. No defaults. +- `PGPOOL_SR_CHECK_USER`: Username to use to perform streaming checks. This is the user that is used to check that streaming replication is working. Typically, this is the user owner of the 'repmgr' database. No defaults. - `PGPOOL_SR_CHECK_PASSWORD`: Password to use to perform streaming checks. No defaults. - `PGPOOL_SR_CHECK_PASSWORD_FILE`: Path to a file that contains the password to use to perform streaming checks. This will override the value specified in `PGPOOL_SR_CHECK_PASSWORD`. No defaults. - `PGPOOL_SR_CHECK_DATABASE`: Database to use to perform streaming checks. Defaults to `postgres`. diff --git a/bitnami/pgpool/docker-compose-ldap.yml b/bitnami/pgpool/docker-compose-ldap.yml index 3c575698c5f4..d8dfc0a550c6 100644 --- a/bitnami/pgpool/docker-compose-ldap.yml +++ b/bitnami/pgpool/docker-compose-ldap.yml @@ -11,12 +11,13 @@ services: - POSTGRESQL_USERNAME=customuser - POSTGRESQL_PASSWORD=custompassword - POSTGRESQL_DATABASE=customdatabase - - REPMGR_PASSWORD=repmgrpassword - REPMGR_PRIMARY_HOST=pg-0 - REPMGR_PARTNER_NODES=pg-0,pg-1 - REPMGR_NODE_NAME=pg-0 - REPMGR_NODE_NETWORK_NAME=pg-0 - REPMGR_PGHBA_TRUST_ALL=yes + - REPMGR_USERNAME=repmgr + - REPMGR_PASSWORD=repmgrpassword pg-1: image: docker.io/bitnami/postgresql-repmgr:14 ports: @@ -28,12 +29,13 @@ services: - POSTGRESQL_USERNAME=customuser - POSTGRESQL_PASSWORD=custompassword - POSTGRESQL_DATABASE=customdatabase - - REPMGR_PASSWORD=repmgrpassword - REPMGR_PRIMARY_HOST=pg-0 - REPMGR_PARTNER_NODES=pg-0,pg-1 - REPMGR_NODE_NAME=pg-1 - REPMGR_NODE_NETWORK_NAME=pg-1 - REPMGR_PGHBA_TRUST_ALL=yes + - REPMGR_USERNAME=repmgr + - REPMGR_PASSWORD=repmgrpassword pgpool: image: docker.io/bitnami/pgpool:4 ports: @@ -52,6 +54,8 @@ services: - LDAP_BASE=dc=example,dc=org - LDAP_BIND_DN=cn=admin,dc=example,dc=org - LDAP_BIND_PASSWORD=adminpassword + - PGPOOL_POSTGRES_CUSTOM_USERS=customuser + - PGPOOL_POSTGRES_CUSTOM_PASSWORDS=custompassword healthcheck: test: ["CMD", "/opt/bitnami/scripts/pgpool/healthcheck.sh"] interval: 10s diff --git a/bitnami/pgpool/docker-compose.yml b/bitnami/pgpool/docker-compose.yml index f64984d39ee5..87eb3e315d9c 100644 --- a/bitnami/pgpool/docker-compose.yml +++ b/bitnami/pgpool/docker-compose.yml @@ -12,11 +12,12 @@ services: - POSTGRESQL_PASSWORD=custompassword - POSTGRESQL_DATABASE=customdatabase - POSTGRESQL_NUM_SYNCHRONOUS_REPLICAS=1 - - REPMGR_PASSWORD=repmgrpassword - REPMGR_PRIMARY_HOST=pg-0 - REPMGR_PARTNER_NODES=pg-1,pg-0 - REPMGR_NODE_NAME=pg-0 - REPMGR_NODE_NETWORK_NAME=pg-0 + - REPMGR_USERNAME=repmgr + - REPMGR_PASSWORD=repmgrpassword pg-1: image: docker.io/bitnami/postgresql-repmgr:14 ports: @@ -29,25 +30,28 @@ services: - POSTGRESQL_PASSWORD=custompassword - POSTGRESQL_DATABASE=customdatabase - POSTGRESQL_NUM_SYNCHRONOUS_REPLICAS=1 - - REPMGR_PASSWORD=repmgrpassword - REPMGR_PRIMARY_HOST=pg-0 - REPMGR_PARTNER_NODES=pg-0,pg-1 - REPMGR_NODE_NAME=pg-1 - REPMGR_NODE_NETWORK_NAME=pg-1 + - REPMGR_USERNAME=repmgr + - REPMGR_PASSWORD=repmgrpassword pgpool: image: docker.io/bitnami/pgpool:4 ports: - 5432:5432 environment: - PGPOOL_BACKEND_NODES=0:pg-0:5432,1:pg-1:5432 - - PGPOOL_SR_CHECK_USER=customuser - - PGPOOL_SR_CHECK_PASSWORD=custompassword + - PGPOOL_SR_CHECK_USER=repmgr + - PGPOOL_SR_CHECK_PASSWORD=repmgrpassword - PGPOOL_ENABLE_LDAP=no - PGPOOL_POSTGRES_USERNAME=postgres - PGPOOL_POSTGRES_PASSWORD=adminpassword - PGPOOL_ADMIN_USERNAME=admin - PGPOOL_ADMIN_PASSWORD=adminpassword - PGPOOL_ENABLE_LOAD_BALANCING=yes + - PGPOOL_POSTGRES_CUSTOM_USERS=customuser + - PGPOOL_POSTGRES_CUSTOM_PASSWORDS=custompassword healthcheck: test: ["CMD", "/opt/bitnami/scripts/pgpool/healthcheck.sh"] interval: 10s