`expose` and `unexpose` commands are now fully functionnal using the ambassador pattern. This has the advantage to be a 100% docker solution and to not have to restart the service container. Multiple ports are exposed when service specify them. `start` and `stop` commands have been made more robust. When calling `start` or `stop` on an already started (or stopped) service, an error will be printed out instead of issuing failing commands. Exposed services will still be exposed after a `restart`. Also the service containers (and ambassador containers) will start automatically when docker boot up.
14 lines
458 B
Bash
Executable File
14 lines
458 B
Bash
Executable File
#!/usr/bin/env bash
|
|
export REDIS_IMAGE=${REDIS_IMAGE:="redis"}
|
|
export REDIS_IMAGE_VERSION=${REDIS_IMAGE_VERSION:="3.0.3"}
|
|
export REDIS_ROOT=/var/lib/dokku/services/redis
|
|
|
|
export PLUGIN_COMMAND_PREFIX="redis"
|
|
export PLUGIN_DATA_ROOT=$REDIS_ROOT
|
|
export PLUGIN_DATASTORE_PORTS=(6379)
|
|
export PLUGIN_DEFAULT_ALIAS="REDIS"
|
|
export PLUGIN_IMAGE=$REDIS_IMAGE
|
|
export PLUGIN_IMAGE_VERSION=$REDIS_IMAGE_VERSION
|
|
export PLUGIN_SCHEME="redis"
|
|
export PLUGIN_SERVICE="Redis"
|