46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
# Copyright Broadcom, Inc. All Rights Reserved.
|
|
# SPDX-License-Identifier: APACHE-2.0
|
|
|
|
services:
|
|
pg-0:
|
|
image: docker.io/bitnami/postgresql-repmgr:18
|
|
ports:
|
|
- 5432
|
|
volumes:
|
|
- pg_0_data:/bitnami/postgresql
|
|
environment:
|
|
- POSTGRESQL_POSTGRES_PASSWORD=adminpassword
|
|
- POSTGRESQL_USERNAME=customuser
|
|
- POSTGRESQL_PASSWORD=custompassword
|
|
- POSTGRESQL_DATABASE=customdatabase
|
|
- REPMGR_PASSWORD=repmgrpassword
|
|
- REPMGR_PRIMARY_HOST=pg-0
|
|
- REPMGR_PRIMARY_PORT=5432
|
|
- REPMGR_PARTNER_NODES=pg-0,pg-1:5432
|
|
- REPMGR_NODE_NAME=pg-0
|
|
- REPMGR_NODE_NETWORK_NAME=pg-0
|
|
- REPMGR_PORT_NUMBER=5432
|
|
pg-1:
|
|
image: docker.io/bitnami/postgresql-repmgr:18
|
|
ports:
|
|
- 5432
|
|
volumes:
|
|
- pg_1_data:/bitnami/postgresql
|
|
environment:
|
|
- POSTGRESQL_POSTGRES_PASSWORD=adminpassword
|
|
- POSTGRESQL_USERNAME=customuser
|
|
- POSTGRESQL_PASSWORD=custompassword
|
|
- POSTGRESQL_DATABASE=customdatabase
|
|
- REPMGR_PASSWORD=repmgrpassword
|
|
- REPMGR_PRIMARY_HOST=pg-0
|
|
- REPMGR_PRIMARY_PORT=5432
|
|
- REPMGR_PARTNER_NODES=pg-0,pg-1:5432
|
|
- REPMGR_NODE_NAME=pg-1
|
|
- REPMGR_NODE_NETWORK_NAME=pg-1
|
|
- REPMGR_PORT_NUMBER=5432
|
|
volumes:
|
|
pg_0_data:
|
|
driver: local
|
|
pg_1_data:
|
|
driver: local
|