You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -189,7 +189,7 @@ When `POSTGRES_USER` is is specified, the `postgres` user is not assigned a pass
189
189
190
190
A [Streaming replication](http://www.postgresql.org/docs/9.4/static/warm-standby.html#STREAMING-REPLICATION) cluster can easily be setup with the Bitnami PostgreSQL Docker Image using the following environment variables:
191
191
192
-
-`POSTGRES_REPLICATION_MODE`: Replication mode. Possible values `master`/`slave` (default: master).
192
+
-`POSTGRES_MODE`: Replication mode. Possible values `master`/`slave` (default: master).
193
193
-`POSTGRES_REPLICATION_USER`: Replication user. User is created on the master at first boot (default: none).
194
194
-`POSTGRES_REPLICATION_PASSWORD`: Replication users password. Password is set for `POSTGRES_REPLICATION_USER` on master on the first boot (default: none).
195
195
-`POSTGRES_MASTER_HOST`: Hostname/IP of replication master (parameter available only on slave).
@@ -208,15 +208,15 @@ docker run --name postgresql-master \
In this command we are configuring the container as the master using the `POSTGRES_REPLICATION_MODE=master` parameter. Using the `POSTGRES_REPLICATION_USER` and `POSTGRES_REPLICATION_PASSWORD` parameters we are creating a replication user that will be used by the slaves to connect to the master and perform streaming replication.
217
+
In this command we are configuring the container as the master using the `POSTGRES_MODE=master` parameter. Using the `POSTGRES_REPLICATION_USER` and `POSTGRES_REPLICATION_PASSWORD` parameters we are creating a replication user that will be used by the slaves to connect to the master and perform streaming replication.
218
218
219
-
By default a container is configured as a `master`. As a result you can drop the `POSTGRES_REPLICATION_MODE=master` from the above command.
219
+
By default a container is configured as a `master`. As a result you can drop the `POSTGRES_MODE=master` from the above command.
220
220
221
221
### Step 2: Create the replication slave
222
222
@@ -227,13 +227,13 @@ docker run --name postgresql-slave \
In this command we are configuring the container as a slave using the `POSTGRES_REPLICATION_MODE=slave` parameter. Before the replication slave is started, the `POSTGRES_MASTER_HOST` and `POSTGRES_MASTER_PORT` parameters are used by the slave container to connect to the master and replicate the initial database from the master. The `POSTGRES_REPLICATION_USER` and `POSTGRES_REPLICATION_PASSWORD` credentials are used to authenticate with the master.
236
+
In this command we are configuring the container as a slave using the `POSTGRES_MODE=slave` parameter. Before the replication slave is started, the `POSTGRES_MASTER_HOST` and `POSTGRES_MASTER_PORT` parameters are used by the slave container to connect to the master and replicate the initial database from the master. The `POSTGRES_REPLICATION_USER` and `POSTGRES_REPLICATION_PASSWORD` credentials are used to authenticate with the master.
237
237
238
238
Using the `master` docker link alias, the Bitnami PostgreSQL Docker image automatically fetches the replication paramaters from the master container, namely:
239
239
@@ -247,7 +247,7 @@ As a result you can drop all of these parameters from the slave.
Copy file name to clipboardExpand all lines: help.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ environment_variables:
2
2
POSTGRES_USER: "User to be created on first boot (default: postgres)."
3
3
POSTGRES_PASSWORD: "Password to be set for POSTGRES_USER on first boot (default: none)."
4
4
POSTGRES_DB: "Database to be created on first boot, accessible by POSTGRES_USER (default: none)."
5
-
POSTGRES_REPLICATION_MODE: "Replication mode. Possible values master/slave (default: master)."
5
+
POSTGRES_MODE: "Replication mode. Possible values master/slave (default: master)."
6
6
POSTGRES_REPLICATION_USER: "Replication user. User is created on the master at first boot (default: none)."
7
7
POSTGRES_REPLICATION_PASSWORD: "Replication users password. Password is set for POSTGRES_REPLICATION_USER on master on the first boot (default: none)."
8
8
POSTGRES_MASTER_HOST: "Hostname/IP of replication master (parameter available only on slave)."
0 commit comments