forked from dokku/dokku-mongo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config
28 lines (26 loc) · 1.15 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
export MONGO_IMAGE=${MONGO_IMAGE:="mongo"}
export MONGO_IMAGE_VERSION=${MONGO_IMAGE_VERSION:="3.6.15"}
export MONGO_ROOT=${MONGO_ROOT:="$DOKKU_LIB_ROOT/services/mongo"}
export MONGO_HOST_ROOT=${MONGO_HOST_ROOT:=$MONGO_ROOT}
export PLUGIN_UNIMPLEMENTED_SUBCOMMANDS=()
export PLUGIN_COMMAND_PREFIX="mongo"
export PLUGIN_CONFIG_ROOT=${PLUGIN_CONFIG_ROOT:="$DOKKU_LIB_ROOT/config/$PLUGIN_COMMAND_PREFIX"}
export PLUGIN_DATA_ROOT=$MONGO_ROOT
export PLUGIN_DATA_HOST_ROOT=$MONGO_HOST_ROOT
export PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017)
export PLUGIN_DATASTORE_WAIT_PORT=27017
export PLUGIN_DEFAULT_ALIAS="MONGO"
export PLUGIN_DISABLE_PULL=${MONGO_DISABLE_PULL:=}
export PLUGIN_DISABLE_PULL_VARIABLE="MONGO_DISABLE_PULL"
export PLUGIN_ALT_ALIAS="DOKKU_MONGO"
export PLUGIN_IMAGE=$MONGO_IMAGE
export PLUGIN_IMAGE_VERSION=$MONGO_IMAGE_VERSION
export PLUGIN_SCHEME="mongodb"
export PLUGIN_SERVICE="MongoDB"
export PLUGIN_VARIABLE="MONGO"
export PLUGIN_BASE_PATH="$PLUGIN_PATH"
if [[ -n $DOKKU_API_VERSION ]]; then
export PLUGIN_BASE_PATH="$PLUGIN_ENABLED_PATH"
fi
export MONGO_CONFIG_OPTIONS=${MONGO_CONFIG_OPTIONS:=" --storageEngine wiredTiger --auth "}