Skip to content

Instantly share code, notes, and snippets.

@jheidt
Created May 6, 2026 08:42
Show Gist options
  • Select an option

  • Save jheidt/5063bfff0a266edfd891d3408e2c58dc to your computer and use it in GitHub Desktop.

Select an option

Save jheidt/5063bfff0a266edfd891d3408e2c58dc to your computer and use it in GitHub Desktop.
# Copyright 2026 SolDevelo
# Based on Bitnami PostgreSQL Repmgr © Broadcom, Inc. (Apache-2.0)
# SPDX-License-Identifier: Apache-2.0
services:
pg-0:
image: docker.io/soldevelo/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/soldevelo/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment