readme: formatting

This commit is contained in:
Sameer Naik
2015-07-11 19:49:46 +05:30
parent 3d90afa4c6
commit 5105cd9b70
+2 -2
View File
@@ -148,7 +148,7 @@ host all all samenet trust
You may use the `PSQL_MODE` variable along with `REPLICATION_HOST`, `REPLICATION_PORT`, `REPLICATION_USER` and `REPLICATION_PASS` to create a snapshot of an existing database and enable stream replication.
Your master database must support replication or super-user access for the credentials you specify. The `PSQL_MODE` variable should be set to "master" for replication on your master node and "slave" or "snapshot" for streaming replication or a point-in-time snapshot of a running database.
Your master database must support replication or super-user access for the credentials you specify. The `PSQL_MODE` variable should be set to `master`, for replication on your master node and `slave` or `snapshot` respectively for streaming replication or a point-in-time snapshot of a running instance.
Create a new master instance:
@@ -174,6 +174,7 @@ docker run --name postgresql-slave -p 5433:5432 -d \
```
Create a snapshot downloaded from a master instance:
```bash
docker run --name postgresql-slave -p 5433:5432 -d \
-e 'PSQL_TRUST_LOCALNET=true' \
@@ -205,7 +206,6 @@ docker run --link postgresql-master:psql --name='postgresql-slave' -it --rm \
sameersbn/postgresql:latest
```
# Configuration
## Data Store