Skip to content

Commit 490f33c

Browse files
author
Sameer Naik
committed
release 9.4-9
1 parent c1cce03 commit 490f33c

4 files changed

Lines changed: 22 additions & 22 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-9**
44
- complete rewrite
55
- `PSQL_TRUST_LOCALNET` config parameter renamed to `PG_TRUST_LOCALNET`
66
- `PSQL_MODE` config parameter renamed to `REPLICATION_MODE`

README.md

Lines changed: 19 additions & 19 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-8
3+
# sameersbn/postgresql:9.4-9
44

55
- [Introduction](#introduction)
66
- [Contributing](#contributing)
@@ -60,7 +60,7 @@ Automated builds of the image are available on [Dockerhub](https://hub.docker.co
6060
> **Note**: Builds are also available on [Quay.io](https://quay.io/repository/sameersbn/postgresql)
6161
6262
```bash
63-
docker pull sameersbn/postgresql:9.4-8
63+
docker pull sameersbn/postgresql:9.4-9
6464
```
6565

6666
Alternatively you can build the image yourself.
@@ -77,7 +77,7 @@ Start PostgreSQL using:
7777
docker run --name postgresql -itd --restart always \
7878
--publish 5432:5432 \
7979
--volume /srv/docker/postgresql:/var/lib/postgresql \
80-
sameersbn/postgresql:9.4-8
80+
sameersbn/postgresql:9.4-9
8181
```
8282

8383
Login to the PostgreSQL server using:
@@ -108,7 +108,7 @@ By default connections to the PostgreSQL server need to authenticated using a pa
108108
```bash
109109
docker run --name postgresql -itd --restart always \
110110
--env 'PG_TRUST_LOCALNET=true' \
111-
sameersbn/postgresql:9.4-8
111+
sameersbn/postgresql:9.4-9
112112
```
113113

114114
> **Note**
@@ -122,7 +122,7 @@ A new PostgreSQL database user can be created by specifying the `DB_USER` and `D
122122
```bash
123123
docker run --name postgresql -itd --restart always \
124124
--env 'DB_USER=dbuser' --env 'DB_PASS=dbuserpass' \
125-
sameersbn/postgresql:9.4-8
125+
sameersbn/postgresql:9.4-9
126126
```
127127

128128
> **Notes**
@@ -139,7 +139,7 @@ A new PostgreSQL database can be created by specifying the `DB_NAME` variable wh
139139
```bash
140140
docker run --name postgresql -itd --restart always \
141141
--env 'DB_NAME=dbname' \
142-
sameersbn/postgresql:9.4-8
142+
sameersbn/postgresql:9.4-9
143143
```
144144

145145
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`.
@@ -149,7 +149,7 @@ Additionally, more than one database can be created by specifying a comma separa
149149
```bash
150150
docker run --name postgresql -itd --restart always \
151151
--env 'DB_NAME=dbname1,dbname2' \
152-
sameersbn/postgresql:9.4-8
152+
sameersbn/postgresql:9.4-9
153153
```
154154

155155
# Enabling unaccent extension
@@ -161,7 +161,7 @@ You can enable the unaccent extension on database(s) by specifying `DB_UNACCENT=
161161
```bash
162162
docker run --name postgresql -itd \
163163
--env 'DB_NAME=dbname' --env 'DB_UNACCENT=true' \
164-
sameersbn/postgresql:9.4-8
164+
sameersbn/postgresql:9.4-9
165165
```
166166

167167
*By default the unaccent extension is disabled*
@@ -174,7 +174,7 @@ If the `DB_USER` and `DB_PASS` variables are specified along with the `DB_NAME`
174174
docker run --name postgresql -itd --restart always \
175175
--env 'DB_USER=dbuser' --env 'DB_PASS=dbuserpass' \
176176
--env 'DB_NAME=dbname1,dbname2' \
177-
sameersbn/postgresql:9.4-8
177+
sameersbn/postgresql:9.4-9
178178
```
179179

180180
In the above example `dbuser` with be granted access to both the `dbname1` and `dbname2` databases.
@@ -186,7 +186,7 @@ Similar to the creation of a database user, a new PostgreSQL replication user ca
186186
```bash
187187
docker run --name postgresql -itd --restart always \
188188
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
189-
sameersbn/postgresql:9.4-8
189+
sameersbn/postgresql:9.4-9
190190
```
191191

192192
> **Notes**
@@ -208,7 +208,7 @@ Begin by creating the master node of our cluster:
208208
docker run --name postgresql-master -itd --restart always \
209209
--env 'DB_USER=dbuser' --env 'DB_PASS=dbuserpass' --env 'DB_NAME=dbname' \
210210
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
211-
sameersbn/postgresql:9.4-8
211+
sameersbn/postgresql:9.4-9
212212
```
213213

214214
Notice that no additional arguments are specified while starting the master node of the cluster.
@@ -223,7 +223,7 @@ docker run --name postgresql-slave01 -itd --restart always \
223223
--env 'REPLICATION_MODE=slave' --env 'REPLICATION_SSLMODE=prefer' \
224224
--env 'REPLICATION_HOST=master' --env 'REPLICATION_PORT=5432' \
225225
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
226-
sameersbn/postgresql:9.4-8
226+
sameersbn/postgresql:9.4-9
227227
```
228228

229229
*In the above command, we used docker links so that we can address the master node using the `master` alias in `REPLICATION_HOST`.*
@@ -255,7 +255,7 @@ docker run --name postgresql-snapshot -itd --restart always \
255255
--env 'REPLICATION_MODE=snapshot' --env 'REPLICATION_SSLMODE=prefer' \
256256
--env 'REPLICATION_HOST=master' --env 'REPLICATION_PORT=5432' \
257257
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
258-
sameersbn/postgresql:9.4-8
258+
sameersbn/postgresql:9.4-9
259259
```
260260

261261
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.
@@ -277,7 +277,7 @@ docker run --name postgresql-backup -it --rm \
277277
--env 'REPLICATION_HOST=master' --env 'REPLICATION_PORT=5432' \
278278
--env 'REPLICATION_USER=repluser' --env 'REPLICATION_PASS=repluserpass' \
279279
--volume /srv/docker/backups/postgresql.$(date +%Y%m%d%H$M%S):/var/lib/postgresql \
280-
sameersbn/postgresql:9.4-8
280+
sameersbn/postgresql:9.4-9
281281
```
282282

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

289289
```bash
290290
docker run --name postgresql -itd --restart always \
291-
sameersbn/postgresql:9.4-8 -c log_connections=on
291+
sameersbn/postgresql:9.4-9 -c log_connections=on
292292
```
293293

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

300300
```bash
301301
docker run --name postgresql -itd --restart always \
302-
sameersbn/postgresql:9.4-8 -c logging_collector=on
302+
sameersbn/postgresql:9.4-9 -c logging_collector=on
303303
```
304304

305305
To access the PostgreSQL logs you can use `docker exec`. For example:
@@ -321,7 +321,7 @@ For example, if you want to assign the `postgres` user of the container the UID
321321
```bash
322322
docker run --name postgresql -itd --restart always \
323323
--env 'USERMAP_UID=999' --env 'USERMAP_GID=999' \
324-
sameersbn/postgresql:9.4-8
324+
sameersbn/postgresql:9.4-9
325325
```
326326

327327
# Maintenance
@@ -333,7 +333,7 @@ To upgrade to newer releases:
333333
1. Download the updated Docker image:
334334

335335
```bash
336-
docker pull sameersbn/postgresql:9.4-8
336+
docker pull sameersbn/postgresql:9.4-9
337337
```
338338

339339
2. Stop the currently running image:
@@ -353,7 +353,7 @@ To upgrade to newer releases:
353353
```bash
354354
docker run --name postgresql -itd \
355355
[OPTIONS] \
356-
sameersbn/postgresql:9.4-8
356+
sameersbn/postgresql:9.4-9
357357
```
358358

359359
## Shell Access

VERSION

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

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

0 commit comments

Comments
 (0)