Source build OpenResty with the following modules:
Create log volume
docker run -d -v /var/log/ngx-openresty --name openresty-log-storage docker.io/centos:centos6 /bin/bashCreate config and www dirs.You can use any path here,just replace it in the run command.
mkdir -p /opt/mount/wwwmkdir -p /opt/mount/ngx-openrestyRun
docker run -tid -p 80:80 -p 443:443 --volumes-from openresty-log-storage -v /opt/mount/www:/opt/mount/www -v /opt/mount/ngx-openresty/:/etc/ngx-openresty/ --restart=always --hostname openresty --name openresty docker.io/free/openresty '/bootstrap.sh'The OpenResty config files put in /opt/mount/ngx-openresty. Use the following command to reload config:
docker exec openresty /cmd.shContent type
Image
Digest
Size
287.2 MB
Last updated
almost 9 years ago
docker pull free/openresty