Skip to content

Commit 197d53e

Browse files
author
Sameer Naik
committed
release 9.4-11
1 parent 8820807 commit 197d53e

4 files changed

Lines changed: 23 additions & 23 deletions

File tree

Changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
**latest**
3+
**9.4-11**
44
- added `PG_PASSWORD` variable to specify password for `postgres` user
55

66
**9.4-9**

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-10
3+
# sameersbn/postgresql:9.4-11
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-10
64+
docker pull sameersbn/postgresql:9.4-11
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-10
81+
sameersbn/postgresql:9.4-11
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-10
112+
sameersbn/postgresql:9.4-11
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-10
126+
sameersbn/postgresql:9.4-11
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-10
142+
sameersbn/postgresql:9.4-11
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-10
159+
sameersbn/postgresql:9.4-11
160160
```
161161

162162
Additionally, more than one database can be created by specifying a comma separated list of database names in `DB_NAME`. For example, the following command creates two new databases named `dbname1` and `dbname2`.
@@ -166,7 +166,7 @@ Additionally, more than one database can be created by specifying a comma separa
166166
```bash
167167
docker run --name postgresql -itd --restart always \
168168
--env 'DB_NAME=dbname1,dbname2' \
169-
sameersbn/postgresql:9.4-10
169+
sameersbn/postgresql:9.4-11
170170
```
171171

172172
# Enabling unaccent extension
@@ -178,7 +178,7 @@ You can enable the unaccent extension on database(s) by specifying `DB_UNACCENT=
178178
```bash
179179
docker run --name postgresql -itd \
180180
--env 'DB_NAME=dbname' --env 'DB_UNACCENT=true' \
181-
sameersbn/postgresql:9.4-10
181+
sameersbn/postgresql:9.4-11
182182
```
183183

184184
*By default the unaccent extension is disabled*
@@ -191,7 +191,7 @@ If the `DB_USER` and `DB_PASS` variables are specified along with the `DB_NAME`
191191
docker run --name postgresql -itd --restart always \
192192
--env 'DB_USER=dbuser' --env 'DB_PASS=dbuserpass' \
193193
--env 'DB_NAME=dbname1,dbname2' \
194-
sameersbn/postgresql:9.4-10
194+
sameersbn/postgresql:9.4-11
195195
```
196196

197197
In the above example `dbuser` with be granted access to both the `dbname1` and `dbname2` databases.
@@ -203,7 +203,7 @@ Similar to the creation of a database user, a new PostgreSQL replication user ca
203203
```bash
204204
docker run --name postgresql -itd --restart always \
205205
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
206-
sameersbn/postgresql:9.4-10
206+
sameersbn/postgresql:9.4-11
207207
```
208208

209209
> **Notes**
@@ -225,7 +225,7 @@ Begin by creating the master node of our cluster:
225225
docker run --name postgresql-master -itd --restart always \
226226
--env 'DB_USER=dbuser' --env 'DB_PASS=dbuserpass' --env 'DB_NAME=dbname' \
227227
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
228-
sameersbn/postgresql:9.4-10
228+
sameersbn/postgresql:9.4-11
229229
```
230230

231231
Notice that no additional arguments are specified while starting the master node of the cluster.
@@ -240,7 +240,7 @@ docker run --name postgresql-slave01 -itd --restart always \
240240
--env 'REPLICATION_MODE=slave' --env 'REPLICATION_SSLMODE=prefer' \
241241
--env 'REPLICATION_HOST=master' --env 'REPLICATION_PORT=5432' \
242242
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
243-
sameersbn/postgresql:9.4-10
243+
sameersbn/postgresql:9.4-11
244244
```
245245

246246
*In the above command, we used docker links so that we can address the master node using the `master` alias in `REPLICATION_HOST`.*
@@ -272,7 +272,7 @@ docker run --name postgresql-snapshot -itd --restart always \
272272
--env 'REPLICATION_MODE=snapshot' --env 'REPLICATION_SSLMODE=prefer' \
273273
--env 'REPLICATION_HOST=master' --env 'REPLICATION_PORT=5432' \
274274
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
275-
sameersbn/postgresql:9.4-10
275+
sameersbn/postgresql:9.4-11
276276
```
277277

278278
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.
@@ -294,7 +294,7 @@ docker run --name postgresql-backup -it --rm \
294294
--env 'REPLICATION_HOST=master' --env 'REPLICATION_PORT=5432' \
295295
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
296296
--volume /srv/docker/backups/postgresql.$(date +%Y%m%d%H$M%S):/var/lib/postgresql \
297-
sameersbn/postgresql:9.4-10
297+
sameersbn/postgresql:9.4-11
298298
```
299299

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

306306
```bash
307307
docker run --name postgresql -itd --restart always \
308-
sameersbn/postgresql:9.4-10 -c log_connections=on
308+
sameersbn/postgresql:9.4-11 -c log_connections=on
309309
```
310310

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

317317
```bash
318318
docker run --name postgresql -itd --restart always \
319-
sameersbn/postgresql:9.4-10 -c logging_collector=on
319+
sameersbn/postgresql:9.4-11 -c logging_collector=on
320320
```
321321

322322
To access the PostgreSQL logs you can use `docker exec`. For example:
@@ -338,7 +338,7 @@ For example, if you want to assign the `postgres` user of the container the UID
338338
```bash
339339
docker run --name postgresql -itd --restart always \
340340
--env 'USERMAP_UID=999' --env 'USERMAP_GID=999' \
341-
sameersbn/postgresql:9.4-10
341+
sameersbn/postgresql:9.4-11
342342
```
343343

344344
# Maintenance
@@ -350,7 +350,7 @@ To upgrade to newer releases:
350350
1. Download the updated Docker image:
351351

352352
```bash
353-
docker pull sameersbn/postgresql:9.4-10
353+
docker pull sameersbn/postgresql:9.4-11
354354
```
355355

356356
2. Stop the currently running image:
@@ -370,7 +370,7 @@ To upgrade to newer releases:
370370
```bash
371371
docker run --name postgresql -itd \
372372
[OPTIONS] \
373-
sameersbn/postgresql:9.4-10
373+
sameersbn/postgresql:9.4-11
374374
```
375375

376376
## Shell Access

VERSION

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

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-10
3+
image: sameersbn/postgresql:9.4-11
44
ports:
55
- "5432:5432"
66
environment:

0 commit comments

Comments
 (0)