From eaf63db886da9c2930b54e546547bfc6a831bc4b Mon Sep 17 00:00:00 2001 From: Feike Steenbergen Date: Thu, 22 Oct 2015 09:28:00 +0200 Subject: [PATCH] Use a different namespace in the Docker container. Also bugfix: Patroni should advertise Docker ip as connect address --- docker/entrypoint.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index d94757b3..7afdf9c5 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -83,10 +83,11 @@ cat > /patroni/postgres.yml <<__EOF__ ttl: &ttl 30 loop_wait: &loop_wait 10 -scope: &scope ${PATRONI_SCOPE} +scope: &scope '${PATRONI_SCOPE}' +namespace: 'patroni' restapi: - listen: 127.0.0.1:8008 - connect_address: 127.0.0.1:8008 + listen: 0.0.0.0:8008 + connect_address: ${DOCKER_IP}:8008 etcd: scope: *scope ttl: *ttl