Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

3scale/docker-openresty

Repository files navigation

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 ["supervisord"]

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.

About

Docker Image with Openresty, redis and luarocks

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •