Sign inSign up

3scale/openresty

By 3scale

•Updated almost 11 years ago

Latest Openresty with redis and some handy packages installed.

Image
16

50K+

3scale/openresty repository overview

⁠docker-openresty

Docker Image with Openresty, redis and luarocks

⁠Example Usage

FROM 3scale/openresty

## add your supervisor openresty config
ADD openresty.conf /etc/supervisor/conf.d/

# Add your app
ADD . /var/www

CMD ["supervisor"]
⁠Supervisor config

Depends on your application, but something like following should work:

[program:openresty]
command=/opt/openresty/nginx/sbin/nginx -p /var/www/ -c config/nginx.conf  -g 'daemon off;'
autorestart=true
⁠Nginx config

Supervisor expects the process not to daemonize. So make sure your nginx config has 'daemon off;'.

⁠Cron

Cron is available and running by supervisor, so you can freely use logrotate and other cron goodies.

Tag summary

Content type

Image

Digest

sha256:08ee9358f…

Size

132.5 MB

Last updated

almost 11 years ago

docker pull 3scale/openresty