start-openresty.sh 409 B

12345678910111213
  1. #!/bin/bash
  2. docker run --name openresty \
  3. --network=host \
  4. --restart unless-stopped \
  5. -e TZ='Asia/Shanghai' \
  6. -v /app/openresty/conf:/usr/local/openresty/nginx/conf \
  7. -v /app/openresty/conf.d:/etc/nginx/conf.d \
  8. -v /app/openresty/logs:/usr/local/openresty/nginx/logs \
  9. -v /app/openresty/lua:/usr/local/openresty/nginx/lua \
  10. -v /app:/app \
  11. -v /etc/localtime:/etc/localtime:ro \
  12. -d openresty:1.27.1.2-bookworm