Files
dokku-mysql/config
Jose Diaz-Gonzalez 9146dd21d3 Fix overlapping exported config
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
2015-09-23 14:37:44 -04:00

14 lines
479 B
Bash

#!/usr/bin/env bash
export MYSQL_IMAGE=${MYSQL_IMAGE:="mysql"}
export MYSQL_IMAGE_VERSION=${MYSQL_IMAGE_VERSION:="5.6.26"}
export MYSQL_ROOT=${MYSQL_ROOT:="/var/lib/dokku/services/mysql"}
export PLUGIN_COMMAND_PREFIX="mysql"
export PLUGIN_DATA_ROOT=$MYSQL_ROOT
export PLUGIN_DATASTORE_PORTS=(3306)
export PLUGIN_DEFAULT_ALIAS="DATABASE"
export PLUGIN_IMAGE=$MYSQL_IMAGE
export PLUGIN_IMAGE_VERSION=$MYSQL_IMAGE_VERSION
export PLUGIN_SCHEME="mysql"
export PLUGIN_SERVICE="MySQL"