Docker Image with Openresty, redis and luarocks
FROM 3scale/openresty
## add your supervisor openresty config
ADD openresty.conf /etc/supervisor/conf.d/
# Add your app
ADD . /var/www
CMD ["supervisord"]
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
Supervisor expects the process not to daemonize. So make sure your nginx config has 'daemon off;'.
Cron is available and running by supervisor, so you can freely use logrotate and other cron goodies.