Update docker-compose example to postgres 10 (#737)

Some other changes are related to the new version of confd, which now
requires specifying etcd url instead of etcd host.
This commit is contained in:
Alexander Kukushkin
2018-07-23 16:41:17 +02:00
committed by Oleksii Kliukin
parent c8f9199988
commit 26466237b9
5 changed files with 20 additions and 23 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
`confd` directory contains haproxy template files for the [confd](https://github.com/kelseyhightower/confd) -- lightweight configuration management tool
You need to copy content of `confd` directory into /etcd/confd and run confd service:
```bash
$ confd -prefix=/service/$PATRONI_SCOPE -backend etcd -node $PATRONI_ETCD_HOST -interval=10
$ confd -prefix=/service/$PATRONI_SCOPE -backend etcd -node $PATRONI_ETCD_URL -interval=10
```
It will periodically update haproxy.cfg with the actual list of Patroni nodes from `etcd` and "reload" haproxy when it is necessary.