diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1c2c22e --- /dev/null +++ b/Dockerfile @@ -0,0 +1 @@ +FROM mongo:3.6.15 diff --git a/config b/config index 9b27655..4bcf422 100644 --- a/config +++ b/config @@ -1,6 +1,6 @@ #!/usr/bin/env bash -export MONGO_IMAGE=${MONGO_IMAGE:="mongo"} -export MONGO_IMAGE_VERSION=${MONGO_IMAGE_VERSION:="3.6.15"} +export MONGO_IMAGE=${MONGO_IMAGE:="$(awk -F '[ :]' '{print $2}' Dockerfile)"} +export MONGO_IMAGE_VERSION=${MONGO_IMAGE_VERSION:="$(awk -F '[ :]' '{print $3}' Dockerfile)"} export MONGO_ROOT=${MONGO_ROOT:="$DOKKU_LIB_ROOT/services/mongo"} export MONGO_HOST_ROOT=${MONGO_HOST_ROOT:=$MONGO_ROOT}