Skip to content

Commit 7ecd6a9

Browse files
author
Sameer Naik
committed
release 9.6-3
1 parent cf2ba63 commit 7ecd6a9

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![Circle CI](https://circleci.com/gh/sameersbn/docker-postgresql.svg?style=shield)](https://circleci.com/gh/sameersbn/docker-postgresql) [![Docker Repository on Quay.io](https://quay.io/repository/sameersbn/postgresql/status "Docker Repository on Quay.io")](https://quay.io/repository/sameersbn/postgresql) [![](https://badge.imagelayers.io/sameersbn/postgresql.svg)](https://imagelayers.io/?images=sameersbn/postgresql:latest 'Get your own badge on imagelayers.io')
22

3-
# sameersbn/postgresql:9.6-2
3+
# sameersbn/postgresql:9.6-3
44

55
- [Introduction](#introduction)
66
- [Contributing](#contributing)
@@ -61,7 +61,7 @@ Automated builds of the image are available on [Dockerhub](https://hub.docker.co
6161
> **Note**: Builds are also available on [Quay.io](https://quay.io/repository/sameersbn/postgresql)
6262
6363
```bash
64-
docker pull sameersbn/postgresql:9.6-2
64+
docker pull sameersbn/postgresql:9.6-3
6565
```
6666

6767
Alternatively you can build the image yourself.
@@ -78,7 +78,7 @@ Start PostgreSQL using:
7878
docker run --name postgresql -itd --restart always \
7979
--publish 5432:5432 \
8080
--volume /srv/docker/postgresql:/var/lib/postgresql \
81-
sameersbn/postgresql:9.6-2
81+
sameersbn/postgresql:9.6-3
8282
```
8383

8484
Login to the PostgreSQL server using:
@@ -109,7 +109,7 @@ By default connections to the PostgreSQL server need to authenticated using a pa
109109
```bash
110110
docker run --name postgresql -itd --restart always \
111111
--env 'PG_TRUST_LOCALNET=true' \
112-
sameersbn/postgresql:9.6-2
112+
sameersbn/postgresql:9.6-3
113113
```
114114

115115
> **Note**
@@ -123,7 +123,7 @@ By default the `postgres` user is not assigned a password and as a result you ca
123123
```bash
124124
docker run --name postgresql -itd --restart always \
125125
--env 'PG_PASSWORD=passw0rd' \
126-
sameersbn/postgresql:9.6-2
126+
sameersbn/postgresql:9.6-3
127127
```
128128

129129

@@ -139,7 +139,7 @@ A new PostgreSQL database user can be created by specifying the `DB_USER` and `D
139139
```bash
140140
docker run --name postgresql -itd --restart always \
141141
--env 'DB_USER=dbuser' --env 'DB_PASS=dbuserpass' \
142-
sameersbn/postgresql:9.6-2
142+
sameersbn/postgresql:9.6-3
143143
```
144144

145145
> **Notes**
@@ -156,7 +156,7 @@ A new PostgreSQL database can be created by specifying the `DB_NAME` variable wh
156156
```bash
157157
docker run --name postgresql -itd --restart always \
158158
--env 'DB_NAME=dbname' \
159-
sameersbn/postgresql:9.6-2
159+
sameersbn/postgresql:9.6-3
160160
```
161161

162162
By default databases are created by copying the standard system database named `template1`. You can specify a different template for your database using the `DB_TEMPLATE` parameter. Refer to [Template Databases](http://www.postgresql.org/docs/9.4/static/manage-ag-templatedbs.html) for further information.
@@ -168,7 +168,7 @@ Additionally, more than one database can be created by specifying a comma separa
168168
```bash
169169
docker run --name postgresql -itd --restart always \
170170
--env 'DB_NAME=dbname1,dbname2' \
171-
sameersbn/postgresql:9.6-2
171+
sameersbn/postgresql:9.6-3
172172
```
173173

174174
## Granting user access to a database
@@ -179,7 +179,7 @@ If the `DB_USER` and `DB_PASS` variables are specified along with the `DB_NAME`
179179
docker run --name postgresql -itd --restart always \
180180
--env 'DB_USER=dbuser' --env 'DB_PASS=dbuserpass' \
181181
--env 'DB_NAME=dbname1,dbname2' \
182-
sameersbn/postgresql:9.6-2
182+
sameersbn/postgresql:9.6-3
183183
```
184184

185185
In the above example `dbuser` with be granted access to both the `dbname1` and `dbname2` databases.
@@ -191,7 +191,7 @@ The image also packages the [postgres contrib module](http://www.postgresql.org/
191191
```bash
192192
docker run --name postgresql -itd \
193193
--env 'DB_NAME=db1,db2' --env 'DB_EXTENSION=unaccent,pg_trgm' \
194-
sameersbn/postgresql:9.6-2
194+
sameersbn/postgresql:9.6-3
195195
```
196196

197197
The above command enables the `unaccent` and `pg_trgm` modules on the databases listed in `DB_NAME`, namely `db1` and `db2`.
@@ -207,7 +207,7 @@ Similar to the creation of a database user, a new PostgreSQL replication user ca
207207
```bash
208208
docker run --name postgresql -itd --restart always \
209209
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
210-
sameersbn/postgresql:9.6-2
210+
sameersbn/postgresql:9.6-3
211211
```
212212

213213
> **Notes**
@@ -229,7 +229,7 @@ Begin by creating the master node of our cluster:
229229
docker run --name postgresql-master -itd --restart always \
230230
--env 'DB_USER=dbuser' --env 'DB_PASS=dbuserpass' --env 'DB_NAME=dbname' \
231231
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
232-
sameersbn/postgresql:9.6-2
232+
sameersbn/postgresql:9.6-3
233233
```
234234

235235
Notice that no additional arguments are specified while starting the master node of the cluster.
@@ -244,7 +244,7 @@ docker run --name postgresql-slave01 -itd --restart always \
244244
--env 'REPLICATION_MODE=slave' --env 'REPLICATION_SSLMODE=prefer' \
245245
--env 'REPLICATION_HOST=master' --env 'REPLICATION_PORT=5432' \
246246
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
247-
sameersbn/postgresql:9.6-2
247+
sameersbn/postgresql:9.6-3
248248
```
249249

250250
*In the above command, we used docker links so that we can address the master node using the `master` alias in `REPLICATION_HOST`.*
@@ -276,7 +276,7 @@ docker run --name postgresql-snapshot -itd --restart always \
276276
--env 'REPLICATION_MODE=snapshot' --env 'REPLICATION_SSLMODE=prefer' \
277277
--env 'REPLICATION_HOST=master' --env 'REPLICATION_PORT=5432' \
278278
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
279-
sameersbn/postgresql:9.6-2
279+
sameersbn/postgresql:9.6-3
280280
```
281281

282282
The difference between a slave and a snapshot is that a slave is read-only and updated whenever the master data is updated (streaming replication), while a snapshot is read-write and is not updated after the initial snapshot of the data from the master.
@@ -298,7 +298,7 @@ docker run --name postgresql-backup -it --rm \
298298
--env 'REPLICATION_HOST=master' --env 'REPLICATION_PORT=5432' \
299299
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
300300
--volume /srv/docker/backups/postgresql.$(date +%Y%m%d%H%M%S):/var/lib/postgresql \
301-
sameersbn/postgresql:9.6-2
301+
sameersbn/postgresql:9.6-3
302302
```
303303

304304
Once the backup is generated, the container will exit and the backup of the master data will be available at `/srv/docker/backups/postgresql.XXXXXXXXXXXX/`. Restoring the backup involves starting a container with the data in `/srv/docker/backups/postgresql.XXXXXXXXXXXX`.
@@ -309,7 +309,7 @@ You can customize the launch command of PostgreSQL server by specifying argument
309309

310310
```bash
311311
docker run --name postgresql -itd --restart always \
312-
sameersbn/postgresql:9.6-2 -c log_connections=on
312+
sameersbn/postgresql:9.6-3 -c log_connections=on
313313
```
314314

315315
Please refer to the documentation of [postgres](http://www.postgresql.org/docs/9.4/static/app-postgres.html) for the complete list of available options.
@@ -320,7 +320,7 @@ By default the PostgreSQL server logs are sent to the standard output. Using the
320320

321321
```bash
322322
docker run --name postgresql -itd --restart always \
323-
sameersbn/postgresql:9.6-2 -c logging_collector=on
323+
sameersbn/postgresql:9.6-3 -c logging_collector=on
324324
```
325325

326326
To access the PostgreSQL logs you can use `docker exec`. For example:
@@ -342,7 +342,7 @@ For example, if you want to assign the `postgres` user of the container the UID
342342
```bash
343343
docker run --name postgresql -itd --restart always \
344344
--env 'USERMAP_UID=999' --env 'USERMAP_GID=999' \
345-
sameersbn/postgresql:9.6-2
345+
sameersbn/postgresql:9.6-3
346346
```
347347

348348
# Maintenance
@@ -354,7 +354,7 @@ To upgrade to newer releases:
354354
1. Download the updated Docker image:
355355

356356
```bash
357-
docker pull sameersbn/postgresql:9.6-2
357+
docker pull sameersbn/postgresql:9.6-3
358358
```
359359

360360
2. Stop the currently running image:
@@ -374,7 +374,7 @@ To upgrade to newer releases:
374374
```bash
375375
docker run --name postgresql -itd \
376376
[OPTIONS] \
377-
sameersbn/postgresql:9.6-2
377+
sameersbn/postgresql:9.6-3
378378
```
379379

380380
## Shell Access

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9.6-2
1+
9.6-3

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PostgreSQL:
22
restart: always
3-
image: sameersbn/postgresql:9.6-2
3+
image: sameersbn/postgresql:9.6-3
44
ports:
55
- "5432:5432"
66
environment:

0 commit comments

Comments
 (0)