更新构建shell

This commit is contained in:
陈云志
2020-12-23 14:15:26 +08:00
parent dbe2a5a8ad
commit 858d00b1bf
11 changed files with 43 additions and 38 deletions

View File

@@ -1,4 +1,6 @@
#!/bin/bash
docker rm -f nginx-latest
docker run --name=nginx-latest --restart=always -p 80:80 -v /opt/pscada-online/nginx-conf/:/etc/nginx/ -v /var/logs/nginx:/var/logs/nginx -v /opt/pscada-online/www:/opt/pscada-online/www -e TZ="Asia/Shanghai" -d nginx
#项目程序部署目录
project=$1
docker run --name=nginx-latest --restart=always -p 80:80 -v ${project}/nginx-conf/:/etc/nginx/ -v /var/logs/nginx:/var/logs/nginx -v ${project}/www:/opt/pscada-online/www -e TZ="Asia/Shanghai" -d nginx