Docker Deploy
Init
openresty_image=openresty/openresty:1.27.1.2-bookworm
mkdir ~/openresty/logs
mkdir ~/openresty/conf
Pull Image
docker pull $openresty_image
docker-run.sh
docker run -d \
--name openresty \
-p 80:80 \
-p 443:443 \
-v ~/openresty/conf/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf \
-v ~/openresty/conf/conf.d:/usr/local/openresty/nginx/conf/conf.d \
-v ~/openresty/logs:/usr/local/openresty/nginx/logs \
$openresty_image