Replace project name variable for service name

This commit is contained in:
Arnie
2018-01-04 06:58:48 +01:00
parent 770aafa5ca
commit ac46887e75
8 changed files with 34 additions and 34 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ SCRIPT_PATH=$( cd "$(dirname "$0")" ; pwd -P )
IMAGE_NAME="docker.elastic.co/elasticsearch/elasticsearch"
IMAGE_VERSION="5.3.2"
PROJECT_NAME=elastic-search
SERVICE_NAME=elastic-search
source ${SCRIPT_PATH}/../common.shinc
@@ -29,10 +29,10 @@ init() {
__build || return $?
docker create \
--name ${PROJECT_NAME} \
--name ${SERVICE_NAME} \
-e VIRTUAL_HOST=${DOMAIN_NAME} \
--net ${SEARCH_ENGINE_NETWORK} \
${PROJECT_NAME}:latest
${SERVICE_NAME}:latest
[[ $? -ne 0 ]] && return 1