Update to use postgres 10.4 by default
This commit is contained in:
30
README.md
30
README.md
@@ -1,11 +1,11 @@
|
||||
# dokku postgres [](https://travis-ci.org/dokku/dokku-postgres) [](https://webchat.freenode.net/?channels=dokku)
|
||||
|
||||
Official postgres plugin for dokku. Currently defaults to installing [postgres 10.2](https://hub.docker.com/_/postgres/).
|
||||
Official postgres plugin for dokku. Currently defaults to installing [postgres 10.4](https://hub.docker.com/_/postgres/).
|
||||
|
||||
## requirements
|
||||
|
||||
- dokku 0.4.x+
|
||||
- docker 1.8.x
|
||||
* dokku 0.4.x+
|
||||
* docker 1.8.x
|
||||
|
||||
## installation
|
||||
|
||||
@@ -58,7 +58,7 @@ dokku postgres:create lolipop
|
||||
# it *must* be compatible with the
|
||||
# official postgres image
|
||||
export POSTGRES_IMAGE="postgres"
|
||||
export POSTGRES_IMAGE_VERSION="10.2"
|
||||
export POSTGRES_IMAGE_VERSION="10.4"
|
||||
dokku postgres:create lolipop
|
||||
|
||||
# you can also specify custom environment
|
||||
@@ -172,18 +172,18 @@ believe the postgres is not linked when attempting to use `dokku postgres:unlink
|
||||
or `dokku postgres:promote`.
|
||||
You should be able to fix this by
|
||||
|
||||
- Changing DATABASE_URL manually to the new value.
|
||||
* Changing DATABASE_URL manually to the new value.
|
||||
|
||||
OR
|
||||
|
||||
- Set POSTGRES_DATABASE_SCHEME back to its original setting
|
||||
- Unlink the service
|
||||
- Change POSTGRES_DATABASE_SCHEME to the desired setting
|
||||
- Relink the service
|
||||
* Set POSTGRES_DATABASE_SCHEME back to its original setting
|
||||
* Unlink the service
|
||||
* Change POSTGRES_DATABASE_SCHEME to the desired setting
|
||||
* Relink the service
|
||||
|
||||
## upgrade/downgrade
|
||||
|
||||
At the moment a database can’t be upgraded (or downgraded) inplace. Instead a clone has to be made, like this:
|
||||
At the moment a database can’t be upgraded (or downgraded) inplace. Instead a clone has to be made, like this:
|
||||
|
||||
```shell
|
||||
# Our original DB using PG 9.5
|
||||
@@ -206,7 +206,7 @@ $ dokku postgres:destroy db9.5
|
||||
If you wish to tune the postgres instances various .conf files, you can find them by using the postgres:info command.
|
||||
|
||||
```shell
|
||||
dokku postgres:info lolipop
|
||||
dokku postgres:info lolipop
|
||||
# or
|
||||
dokku postgres:info lolipop --data-dir
|
||||
```
|
||||
@@ -243,14 +243,14 @@ dokku postgres:backup-unschedule lolipop
|
||||
```
|
||||
|
||||
Backup auth can also be set up for different regions, signature versions and endpoints (e.g. for minio):
|
||||
|
||||
|
||||
```
|
||||
# setup s3 backup authentication with different region
|
||||
dokku postgres:backup-auth lolipop AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_REGION
|
||||
|
||||
|
||||
# setup s3 backup authentication with different signature version and endpoint
|
||||
dokku postgres:backup-auth lolipop AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_REGION AWS_SIGNATURE_VERSION ENDPOINT_URL
|
||||
|
||||
|
||||
# more specific example for minio auth
|
||||
dokku postgres:backup-auth lolipop MINIO_ACCESS_KEY_ID MINIO_SECRET_ACCESS_KEY us-east-1 s3v4 https://YOURMINIOSERVICE
|
||||
```
|
||||
@@ -266,7 +266,7 @@ dokku postgres:connect db < ./dump.sql
|
||||
## Security
|
||||
|
||||
The connection to the database is done over SSL. A self-signed certificate is
|
||||
automatically generated when creating the service. It can be replaced by a
|
||||
automatically generated when creating the service. It can be replaced by a
|
||||
custom certificate by overwriting the `server.crt` and `server.key` files in
|
||||
`/var/lib/dokku/services/postgres/<DB_NAME>/data`.
|
||||
The `server.key` must be chmoded to 600 and must be owned by the postgres user
|
||||
|
||||
Reference in New Issue
Block a user