Skip to content

Commit 9bbfc8d

Browse files
author
Sameer Naik
committed
readme: fixed typos
1 parent 2302661 commit 9bbfc8d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ postgresql:
183183
```
184184

185185
**Note!**
186-
When `POSTGRES_USER` is is specified, the `postgres` user is not assigned a password and as a result you cannot login remotely to the PostgreSQL server as the `postgres` user.
186+
When `POSTGRES_USER` is specified, the `postgres` user is not assigned a password and as a result you cannot login remotely to the PostgreSQL server as the `postgres` user.
187187

188188
## Setting up a streaming replication
189189

@@ -205,10 +205,10 @@ The first step is to start the master.
205205

206206
```bash
207207
docker run --name postgresql-master \
208+
-e POSTGRES_MODE=master \
208209
-e POSTGRES_USER=my_user \
209210
-e POSTGRES_PASSWORD=password123 \
210211
-e POSTGRES_DB=my_database \
211-
-e POSTGRES_MODE=master \
212212
-e POSTGRES_REPLICATION_USER=my_repl_user \
213213
-e POSTGRES_REPLICATION_PASSWORD=my_repl_password \
214214
bitnami/postgresql
@@ -225,9 +225,9 @@ Next we start a replication slave container.
225225
```bash
226226
docker run --name postgresql-slave \
227227
--link postgresql-master:master \
228+
-e POSTGRES_MODE=slave \
228229
-e POSTGRES_MASTER_HOST=master \
229230
-e POSTGRES_MASTER_PORT=5432 \
230-
-e POSTGRES_MODE=slave \
231231
-e POSTGRES_REPLICATION_USER=my_repl_user \
232232
-e POSTGRES_REPLICATION_PASSWORD=my_repl_password \
233233
bitnami/postgresql
@@ -269,10 +269,10 @@ With Docker Compose the master-slave replication can be setup using:
269269
master:
270270
image: bitnami/postgresql
271271
environment:
272+
- POSTGRES_MODE=master
272273
- POSTGRES_USER=my_user
273274
- POSTGRES_PASSWORD=password123
274275
- POSTGRES_DB=my_database
275-
- POSTGRES_MODE=master
276276
- POSTGRES_REPLICATION_USER=my_repl_user
277277
- POSTGRES_REPLICATION_PASSWORD=my_repl_password
278278

@@ -520,7 +520,7 @@ docker-compose start postgresql
520520

521521
This image is tested for expected runtime behavior, using the [BATS](https://github.com/sstephenson/bats) testing framework. You can run the tests on your machine using the `bats` command.
522522

523-
```
523+
```bash
524524
bats test.sh
525525
```
526526

0 commit comments

Comments
 (0)