docker-redmine icon indicating copy to clipboard operation
docker-redmine copied to clipboard

Use nginx-passenger

Open J0WI opened this issue 8 years ago • 2 comments

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.

J0WI avatar Jan 07 '16 17:01 J0WI

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.

EzVoodoo avatar Feb 21 '16 02:02 EzVoodoo

@sameersbn please let me know if it's worth to invest some time here.

J0WI avatar Feb 21 '16 14:02 J0WI