From 7c7ce8254b215af6df3a20071d7efd978afd3c40 Mon Sep 17 00:00:00 2001 From: smallchill Date: Mon, 1 Apr 2019 10:36:20 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/docker/deploy.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/script/docker/deploy.sh b/script/docker/deploy.sh index 12b559c2..c2f37f47 100644 --- a/script/docker/deploy.sh +++ b/script/docker/deploy.sh @@ -1,7 +1,7 @@ #使用说明,用来提示输入参数 usage() { - echo "Usage: sh 执行脚本.sh [port|mount|base|modules|stop|rm|rmiNoneTag]" + echo "Usage: sh 执行脚本.sh [port|mount|base|modules|monitor|stop|rm|rmiNoneTag]" exit 1 } @@ -41,7 +41,12 @@ base(){ #启动程序模块 modules(){ - docker-compose up -d blade-gateway1 blade-gateway2 blade-admin blade-auth1 blade-auth2 blade-user blade-desk blade-system blade-log + docker-compose up -d blade-gateway1 blade-gateway2 blade-auth1 blade-auth2 blade-user blade-desk blade-system blade-log +} + +#启动监控模块 +monitor(){ + docker-compose up -d blade-admin } #关闭所有模块 @@ -73,6 +78,9 @@ case "$1" in "modules") modules ;; +"monitor") + monitor +;; "stop") stop ;;