Explorar el Código

fix:容器重启策略

ly hace 9 meses
padre
commit
600162a60f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      run.sh

+ 2 - 1
run.sh

@@ -41,7 +41,8 @@ docker run -p ${app_port}:${app_port} --name ${app_name} --network yzbh_network
 -e TZ="Asia/Shanghai" \
 -v /home/build/${volume_name}/logs:/home/ruoyi/logs \
 -v /home/files:/home/files \
--d ${group_name}/${app_name}:${app_version}
+-d ${group_name}/${app_name}:${app_version} \
+--restart
 echo '----start container----'
 
 docker system prune -f