Browse Source

优化脚本

test
smallchill 6 years ago
parent
commit
7c7ce8254b
  1. 12
      script/docker/deploy.sh

12
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
;;

Loading…
Cancel
Save