docker-redmine
docker-redmine copied to clipboard
Use nginx-passenger
I just went though the code and found, that the container runs two services, Unicorn ad nginx. This is not very nice, but it seems that there was no way around (#26).
On my current Redmine instance I'm using nginx-passenger (not yet dockerized).
It's quite easy to install. You need to add the passenger repo and install nginx which is compiled with passenger. Nginx can than be configured to serve ruby and static content at the same time.
https://www.phusionpassenger.com/library/install/nginx/install/oss/trusty/
If you trust their stats, nginx-passenger is also up to 4 times faster than Unicorn: http://www.rubyraptor.org/how-we-made-raptor-up-to-4x-faster-than-unicorn-and-up-to-2x-faster-than-puma-torquebox/
I could assist in configuring nginx if you want to give passenger a chance.
I have benchmarked both the official redmine docker image with passenger webserver and the one from sameer which uses unicorn using apache ab on my lab Dell server. The request per second value was something like 750 v.s. 150 respectively. So, I guess replacing unicorn with passenger will definitely help with the performance of this image.
@sameersbn please let me know if it's worth to invest some time here.