Skip to content

Commit 33fa487

Browse files
author
Sameer Naik
committed
release 9.4-16
1 parent 5e3da54 commit 33fa487

3 files changed

Lines changed: 22 additions & 22 deletions

File tree

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.4-15
3+
# sameersbn/postgresql:9.4-16
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.4-15
64+
docker pull sameersbn/postgresql:9.4-16
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.4-15
81+
sameersbn/postgresql:9.4-16
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.4-15
112+
sameersbn/postgresql:9.4-16
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.4-15
126+
sameersbn/postgresql:9.4-16
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.4-15
142+
sameersbn/postgresql:9.4-16
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.4-15
159+
sameersbn/postgresql:9.4-16
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.4-15
171+
sameersbn/postgresql:9.4-16
172172
```
173173

174174
# Enabling unaccent extension
@@ -180,7 +180,7 @@ You can enable the unaccent extension on database(s) by specifying `DB_UNACCENT=
180180
```bash
181181
docker run --name postgresql -itd \
182182
--env 'DB_NAME=dbname' --env 'DB_UNACCENT=true' \
183-
sameersbn/postgresql:9.4-15
183+
sameersbn/postgresql:9.4-16
184184
```
185185

186186
*By default the unaccent extension is disabled*
@@ -193,7 +193,7 @@ If the `DB_USER` and `DB_PASS` variables are specified along with the `DB_NAME`
193193
docker run --name postgresql -itd --restart always \
194194
--env 'DB_USER=dbuser' --env 'DB_PASS=dbuserpass' \
195195
--env 'DB_NAME=dbname1,dbname2' \
196-
sameersbn/postgresql:9.4-15
196+
sameersbn/postgresql:9.4-16
197197
```
198198

199199
In the above example `dbuser` with be granted access to both the `dbname1` and `dbname2` databases.
@@ -205,7 +205,7 @@ Similar to the creation of a database user, a new PostgreSQL replication user ca
205205
```bash
206206
docker run --name postgresql -itd --restart always \
207207
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
208-
sameersbn/postgresql:9.4-15
208+
sameersbn/postgresql:9.4-16
209209
```
210210

211211
> **Notes**
@@ -227,7 +227,7 @@ Begin by creating the master node of our cluster:
227227
docker run --name postgresql-master -itd --restart always \
228228
--env 'DB_USER=dbuser' --env 'DB_PASS=dbuserpass' --env 'DB_NAME=dbname' \
229229
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
230-
sameersbn/postgresql:9.4-15
230+
sameersbn/postgresql:9.4-16
231231
```
232232

233233
Notice that no additional arguments are specified while starting the master node of the cluster.
@@ -242,7 +242,7 @@ docker run --name postgresql-slave01 -itd --restart always \
242242
--env 'REPLICATION_MODE=slave' --env 'REPLICATION_SSLMODE=prefer' \
243243
--env 'REPLICATION_HOST=master' --env 'REPLICATION_PORT=5432' \
244244
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
245-
sameersbn/postgresql:9.4-15
245+
sameersbn/postgresql:9.4-16
246246
```
247247

248248
*In the above command, we used docker links so that we can address the master node using the `master` alias in `REPLICATION_HOST`.*
@@ -274,7 +274,7 @@ docker run --name postgresql-snapshot -itd --restart always \
274274
--env 'REPLICATION_MODE=snapshot' --env 'REPLICATION_SSLMODE=prefer' \
275275
--env 'REPLICATION_HOST=master' --env 'REPLICATION_PORT=5432' \
276276
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
277-
sameersbn/postgresql:9.4-15
277+
sameersbn/postgresql:9.4-16
278278
```
279279

280280
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.
@@ -296,7 +296,7 @@ docker run --name postgresql-backup -it --rm \
296296
--env 'REPLICATION_HOST=master' --env 'REPLICATION_PORT=5432' \
297297
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
298298
--volume /srv/docker/backups/postgresql.$(date +%Y%m%d%H%M%S):/var/lib/postgresql \
299-
sameersbn/postgresql:9.4-15
299+
sameersbn/postgresql:9.4-16
300300
```
301301

302302
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`.
@@ -307,7 +307,7 @@ You can customize the launch command of PostgreSQL server by specifying argument
307307

308308
```bash
309309
docker run --name postgresql -itd --restart always \
310-
sameersbn/postgresql:9.4-15 -c log_connections=on
310+
sameersbn/postgresql:9.4-16 -c log_connections=on
311311
```
312312

313313
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.
@@ -318,7 +318,7 @@ By default the PostgreSQL server logs are sent to the standard output. Using the
318318

319319
```bash
320320
docker run --name postgresql -itd --restart always \
321-
sameersbn/postgresql:9.4-15 -c logging_collector=on
321+
sameersbn/postgresql:9.4-16 -c logging_collector=on
322322
```
323323

324324
To access the PostgreSQL logs you can use `docker exec`. For example:
@@ -340,7 +340,7 @@ For example, if you want to assign the `postgres` user of the container the UID
340340
```bash
341341
docker run --name postgresql -itd --restart always \
342342
--env 'USERMAP_UID=999' --env 'USERMAP_GID=999' \
343-
sameersbn/postgresql:9.4-15
343+
sameersbn/postgresql:9.4-16
344344
```
345345

346346
# Maintenance
@@ -352,7 +352,7 @@ To upgrade to newer releases:
352352
1. Download the updated Docker image:
353353

354354
```bash
355-
docker pull sameersbn/postgresql:9.4-15
355+
docker pull sameersbn/postgresql:9.4-16
356356
```
357357

358358
2. Stop the currently running image:
@@ -372,7 +372,7 @@ To upgrade to newer releases:
372372
```bash
373373
docker run --name postgresql -itd \
374374
[OPTIONS] \
375-
sameersbn/postgresql:9.4-15
375+
sameersbn/postgresql:9.4-16
376376
```
377377

378378
## Shell Access

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9.4-15
1+
9.4-16

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.4-15
3+
image: sameersbn/postgresql:9.4-16
44
ports:
55
- "5432:5432"
66
environment:

0 commit comments

Comments
 (0)