mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-09-12 12:21:21 +08:00
readme: formatting
This commit is contained in:
@@ -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.
|
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:
|
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:
|
Create a snapshot downloaded from a master instance:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --name postgresql-slave -p 5433:5432 -d \
|
docker run --name postgresql-slave -p 5433:5432 -d \
|
||||||
-e 'PSQL_TRUST_LOCALNET=true' \
|
-e 'PSQL_TRUST_LOCALNET=true' \
|
||||||
@@ -205,7 +206,6 @@ docker run --link postgresql-master:psql --name='postgresql-slave' -it --rm \
|
|||||||
sameersbn/postgresql:latest
|
sameersbn/postgresql:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
|
|
||||||
## Data Store
|
## Data Store
|
||||||
|
|||||||
Reference in New Issue
Block a user