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
+5 -5
View File
@@ -5,7 +5,7 @@ SCRIPT_PATH=$( cd "$(dirname "$0")" ; pwd -P )
IMAGE_NAME="clue/adminer"
IMAGE_VERSION="latest"
PROJECT_NAME=adminer
SERVICE_NAME=adminer
source ${SCRIPT_PATH}/../common.shinc
@@ -29,17 +29,17 @@ init() {
__build || return $?
docker create \
--name ${PROJECT_NAME} \
--name ${SERVICE_NAME} \
-e VIRTUAL_HOST=${DOMAIN_NAME} \
--restart=unless-stopped \
${PROJECT_NAME}:latest
${SERVICE_NAME}:latest
[[ $? -ne 0 ]] && return 1
docker network connect ${DB_NETWORK} ${PROJECT_NAME}
docker network connect ${DB_NETWORK} ${SERVICE_NAME}
[[ $? -ne 0 ]] && return 1
docker network connect ${PROXY_NETWORK} ${PROJECT_NAME}
docker network connect ${PROXY_NETWORK} ${SERVICE_NAME}
[[ $? -ne 0 ]] && return 1
__ask_to_start