mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
When PostgreSQL is running inside the docker container, it should provide the address of the host it's running on and not the address from inside of the container to the outside world.
26 lines
598 B
YAML
26 lines
598 B
YAML
loop_wait: 10
|
|
aws_use_host_address: "on"
|
|
etcd:
|
|
scope: batman
|
|
ttl: 30
|
|
host: 127.0.0.1:4001
|
|
postgresql:
|
|
name: postgresql0
|
|
listen: 127.0.0.1:5432
|
|
data_dir: data/postgresql0
|
|
replication:
|
|
username: replicator
|
|
password: rep-pass
|
|
network: 127.0.0.1/32
|
|
#recovery_conf:
|
|
#restore_command: cp ../wal_archive/%f %p
|
|
parameters:
|
|
archive_mode: "on"
|
|
wal_level: hot_standby
|
|
archive_command: mkdir -p ../wal_archive && cp %p ../wal_archive/%f
|
|
max_wal_senders: 5
|
|
wal_keep_segments: 8
|
|
archive_timeout: 1800s
|
|
max_replication_slots: 5
|
|
hot_standby: "on"
|