If using multiple official dokku datastorage plugins, it is possible to get into a case where the `PLUGIN_DATA_ROOT` would be set incorrectly for other plugins. Refs dokku/dokku-redis#20
14 lines
520 B
Bash
14 lines
520 B
Bash
#!/usr/bin/env bash
|
|
export POSTGRES_IMAGE=${POSTGRES_IMAGE:="postgres"}
|
|
export POSTGRES_IMAGE_VERSION=${POSTGRES_IMAGE_VERSION:="9.4.4"}
|
|
export POSTGRES_ROOT=${POSTGRES_ROOT:="/var/lib/dokku/services/postgres"}
|
|
|
|
export PLUGIN_COMMAND_PREFIX="postgres"
|
|
export PLUGIN_DATA_ROOT=$POSTGRES_ROOT
|
|
export PLUGIN_DATASTORE_PORTS=(5432)
|
|
export PLUGIN_DEFAULT_ALIAS="DATABASE"
|
|
export PLUGIN_IMAGE=$POSTGRES_IMAGE
|
|
export PLUGIN_IMAGE_VERSION=$POSTGRES_IMAGE_VERSION
|
|
export PLUGIN_SCHEME="postgres"
|
|
export PLUGIN_SERVICE="Postgres"
|