forked from transferwise/pipelinewise-tap-postgres
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
33 lines (31 loc) · 946 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: "3.3"
services:
db_primary:
build: .
container_name: "primary"
ports:
- "5432:5432"
environment:
- POSTGRESQL_REPLICATION_MODE=master
- POSTGRESQL_REPLICATION_USER=test_user
- POSTGRESQL_REPLICATION_PASSWORD=my-secret-passwd
- POSTGRESQL_POSTGRES_PASSWORD=my-secret-passwd
- POSTGRESQL_DATABASE=tap_postgres_test
- POSTGRESQL_WAL_LEVEL=logical
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- ./db_setup/config:/bitnami/postgresql/conf
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=test_user
- POSTGRESQL_REPLICATION_PASSWORD=my-secret-passwd
- POSTGRESQL_MASTER_HOST=db_primary
- POSTGRESQL_MASTER_PORT_NUMBER=5432
- ALLOW_EMPTY_PASSWORD=yes