This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from judahrand/replica-read
Add use_replica config flag
- Loading branch information
Showing
10 changed files
with
251 additions
and
150 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
version: "3.3" | ||
|
||
services: | ||
db: | ||
image: "debezium/postgres:12-alpine" | ||
container_name: "" | ||
db_primary: | ||
image: "docker.io/bitnami/postgresql:12" | ||
container_name: "primary" | ||
ports: | ||
- "5432:5432" | ||
environment: | ||
- POSTGRESQL_REPLICATION_MODE=master | ||
- POSTGRESQL_REPLICATION_USER=repl_user | ||
- POSTGRESQL_REPLICATION_PASSWORD=repl_password | ||
- POSTGRES_USER=test_user | ||
- POSTGRES_PASSWORD=my-secret-passwd | ||
- POSTGRES_DB=tap_postgres_test | ||
command: -c "wal_level=logical" -c "max_replication_slots=5" -c "max_wal_senders=5" | ||
- POSTGRESQL_POSTGRES_PASSWORD=my-secret-passwd | ||
- POSTGRESQL_DATABASE=tap_postgres_test | ||
- ALLOW_EMPTY_PASSWORD=yes | ||
db_replica: | ||
image: "docker.io/bitnami/postgresql:12" | ||
container_name: replica | ||
ports: | ||
- "5433:5432" | ||
depends_on: | ||
- db_primary | ||
environment: | ||
- POSTGRESQL_REPLICATION_MODE=slave | ||
- POSTGRESQL_REPLICATION_USER=repl_user | ||
- POSTGRESQL_REPLICATION_PASSWORD=repl_password | ||
- POSTGRESQL_MASTER_HOST=db_primary | ||
- POSTGRESQL_MASTER_PORT_NUMBER=5432 | ||
- ALLOW_EMPTY_PASSWORD=yes |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.