You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
[](https://circleci.com/gh/sameersbn/docker-postgresql)[](https://quay.io/repository/sameersbn/postgresql)[](https://imagelayers.io/?images=sameersbn/postgresql:latest'Get your own badge on imagelayers.io')
2
2
3
-
# sameersbn/postgresql:11-0
3
+
# sameersbn/postgresql:11-20200524
4
4
5
5
-[Introduction](#introduction)
6
6
-[Contributing](#contributing)
@@ -61,7 +61,7 @@ Automated builds of the image are available on [Dockerhub](https://hub.docker.co
61
61
> **Note**: Builds are also available on [Quay.io](https://quay.io/repository/sameersbn/postgresql)
62
62
63
63
```bash
64
-
docker pull sameersbn/postgresql:11-0
64
+
docker pull sameersbn/postgresql:11-20200524
65
65
```
66
66
67
67
Alternatively you can build the image yourself.
@@ -78,7 +78,7 @@ Start PostgreSQL using:
78
78
docker run --name postgresql -itd --restart always \
79
79
--publish 5432:5432 \
80
80
--volume postgresql:/var/lib/postgresql \
81
-
sameersbn/postgresql:11-0
81
+
sameersbn/postgresql:11-20200524
82
82
```
83
83
84
84
Login to the PostgreSQL server using:
@@ -109,7 +109,7 @@ By default connections to the PostgreSQL server need to authenticated using a pa
109
109
```bash
110
110
docker run --name postgresql -itd --restart always \
111
111
--env 'PG_TRUST_LOCALNET=true' \
112
-
sameersbn/postgresql:11-0
112
+
sameersbn/postgresql:11-20200524
113
113
```
114
114
115
115
> **Note**
@@ -123,7 +123,7 @@ By default the `postgres` user is not assigned a password and as a result you ca
123
123
```bash
124
124
docker run --name postgresql -itd --restart always \
125
125
--env 'PG_PASSWORD=passw0rd' \
126
-
sameersbn/postgresql:11-0
126
+
sameersbn/postgresql:11-20200524
127
127
```
128
128
129
129
@@ -139,7 +139,7 @@ A new PostgreSQL database user can be created by specifying the `DB_USER` and `D
139
139
```bash
140
140
docker run --name postgresql -itd --restart always \
@@ -156,7 +156,7 @@ A new PostgreSQL database can be created by specifying the `DB_NAME` variable wh
156
156
```bash
157
157
docker run --name postgresql -itd --restart always \
158
158
--env 'DB_NAME=dbname' \
159
-
sameersbn/postgresql:11-0
159
+
sameersbn/postgresql:11-20200524
160
160
```
161
161
162
162
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
168
168
```bash
169
169
docker run --name postgresql -itd --restart always \
170
170
--env 'DB_NAME=dbname1,dbname2' \
171
-
sameersbn/postgresql:11-0
171
+
sameersbn/postgresql:11-20200524
172
172
```
173
173
174
174
## 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`
179
179
docker run --name postgresql -itd --restart always \
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.
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
309
309
310
310
```bash
311
311
docker run --name postgresql -itd --restart always \
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
320
320
321
321
```bash
322
322
docker run --name postgresql -itd --restart always \
0 commit comments