Files
patroni/postgres1.yml
T
Oleksii Kliukin 8184efbf45 Add an option to use AWS instance address in a PostgreSQL connection string.
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.
2015-04-29 12:54:29 +02:00

26 lines
597 B
YAML

loop_wait: 10
aws_use_host_address: "on"
etcd:
scope: batman
ttl: 30
host: 127.0.0.1:4001
postgresql:
name: postgresql1
listen: 127.0.0.1:5433
data_dir: data/postgresql1
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"