db replica base

This commit is contained in:
2025-09-22 14:22:46 +03:00
parent d5003b5dcb
commit 79568954bc
6 changed files with 65 additions and 20 deletions

View File

@@ -0,0 +1,12 @@
services:
postgres-master:
image: bitnami/postgresql:16
environment:
- POSTGRESQL_REPLICATION_MODE=master
- POSTGRESQL_REPLICATION_USER=repl_user
- POSTGRESQL_REPLICATION_PASSWORD=repl_pass
- POSTGRESQL_USERNAME=admin
- POSTGRESQL_PASSWORD=admin
- POSTGRESQL_DATABASE=mydb
ports:
- '5432:5432'