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
+4 -4
View File
@@ -5,7 +5,7 @@ SCRIPT_PATH=$( cd "$(dirname "$0")" ; pwd -P )
IMAGE_NAME="mailhog/mailhog"
IMAGE_VERSION="latest"
PROJECT_NAME=mailhog
SERVICE_NAME=mailhog
source ${SCRIPT_PATH}/../common.shinc
@@ -28,7 +28,7 @@ init() {
__createNetworks
docker create \
--name ${PROJECT_NAME} \
--name ${SERVICE_NAME} \
-e VIRTUAL_HOST=${DOMAIN_NAME} \
-e VIRTUAL_PORT=${WEB_PORT} \
-p ${SMTP_PORT}:1025 \
@@ -36,10 +36,10 @@ init() {
[[ $? -ne 0 ]] && return 1
docker network connect ${SMTP_NETWORK} ${PROJECT_NAME}
docker network connect ${SMTP_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