start.sh 372 B

123456789101112
  1. #!/bin/bash
  2. docker stop zuihou_nginx
  3. docker rm zuihou_nginx
  4. docker run -idt -p 10000:10000 -p 180:180 --name zuihou_nginx --restart=always \
  5. -v /data/projects/:/data/projects \
  6. -v `pwd`/conf/:/etc/nginx \
  7. -v `pwd`/logs/:/var/log/nginx \
  8. -v `pwd`/html/crossdomain.xml:/usr/share/nginx/html/crossdomain.xml \
  9. -e TZ="Asia/Shanghai" \
  10. nginx:1.17.0