From f6a4b16f95652d17d77a4a274502504150a0808d Mon Sep 17 00:00:00 2001 From: psyd01986 Date: Wed, 16 Feb 2022 14:53:57 +0300 Subject: [PATCH 1/2] Update docker-compose-pg.yml Correct --pg-repl-passwordfile PATH --- examples/swarm/docker-compose-pg.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/swarm/docker-compose-pg.yml b/examples/swarm/docker-compose-pg.yml index 2f27e23a8..d25620374 100644 --- a/examples/swarm/docker-compose-pg.yml +++ b/examples/swarm/docker-compose-pg.yml @@ -49,7 +49,7 @@ services: - pgkeeper2:/var/lib/postgresql/data secrets: - pgsql - command: gosu stolon stolon-keeper --pg-listen-address keeper2 --pg-repl-username replication --uid keeper2 --pg-su-username postgres --pg-su-passwordfile /run/secrets/pgsql --pg-repl-passwordfile /run/secrets/pgsql --data-dir /var/lib/postgresql/data --cluster-name stolon-cluster --store-backend=etcdv3 --store-endpoints http://etcd-00:2379,http://etcd-01:2379,http://etcd-02:2379 --log-level debug + command: gosu stolon stolon-keeper --pg-listen-address keeper2 --pg-repl-username replication --uid keeper2 --pg-su-username postgres --pg-su-passwordfile /run/secrets/pgsql --pg-repl-passwordfile /run/secrets/pgsql_repl --data-dir /var/lib/postgresql/data --cluster-name stolon-cluster --store-backend=etcdv3 --store-endpoints http://etcd-00:2379,http://etcd-01:2379,http://etcd-02:2379 --log-level debug networks: - etcd_etcd - pgdb From a2ff4cd3a943a04dbb63a2ee075f2281df00fe60 Mon Sep 17 00:00:00 2001 From: psyd01986 Date: Wed, 16 Feb 2022 15:06:59 +0300 Subject: [PATCH 2/2] keeper2 add rep secret correct --pg-repl-passwordfil PATH add secret : pgsql_repl --- examples/swarm/docker-compose-pg.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/swarm/docker-compose-pg.yml b/examples/swarm/docker-compose-pg.yml index d25620374..3367de1e3 100644 --- a/examples/swarm/docker-compose-pg.yml +++ b/examples/swarm/docker-compose-pg.yml @@ -49,6 +49,7 @@ services: - pgkeeper2:/var/lib/postgresql/data secrets: - pgsql + - pgsql_repl command: gosu stolon stolon-keeper --pg-listen-address keeper2 --pg-repl-username replication --uid keeper2 --pg-su-username postgres --pg-su-passwordfile /run/secrets/pgsql --pg-repl-passwordfile /run/secrets/pgsql_repl --data-dir /var/lib/postgresql/data --cluster-name stolon-cluster --store-backend=etcdv3 --store-endpoints http://etcd-00:2379,http://etcd-01:2379,http://etcd-02:2379 --log-level debug networks: - etcd_etcd