更新 yudao-server/run.sh

This commit is contained in:
root 2024-09-30 10:45:36 +08:00
parent ef82a0d3f0
commit 4eb4515983

View File

@ -1,16 +1,16 @@
#!/bin/bash
app_name='zymall'
# 定义应用版本
app_version='1.0.0'
app_repository='mt.ptzykjgs.com:8080/serve'
# 定义应用环境
#profile_active='prod'
echo '----pull image----'
docker pull "${app_repository}/${app_name}:${app_version}"
echo '----stop container----'
docker stop ${app_name}
echo '----rm container----'
docker rm ${app_name}
#echo '----rm image----'
#docker rmi -f "${app_name}:${app_version}"
echo '----pull image----'
docker pull "${app_repository}/${app_name}:${app_version}"
echo '----start container----'
docker run -d -p 6127:6127 --name ${app_name} --restart always "${app_repository}/${app_name}:${app_version}"