How to install Redmine and Gitlab on the same machine

  • Posted on October 6, 2014
  • gevikbAsked by gevikb

Hi, I would like to install Redmine and Gitlab on a single machine. How do I proceed with this? Should I do everything myself manually or is there another way you recommend.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

If you want to use both on the same Droplet, the simplest way would be to use Nginx as a reverse proxy in front of both apps. I’d start with GitLab as it uses an “omnibus” installer which bundles a number of components including Nginx. Many of these bundled components can be configured in /etc/gitlab/gitlab.rb See this doc for more information on how to configure Nginx settings through it.

You can add a custom include directive to the Nginx configuration. This will allow you to set up a separate Nginx config file for your Redmine instance. In /etc/gitlab/gitlab.rb add:

external_url ""
nginx['custom_nginx_config'] = "include /etc/nginx/conf.d/*.conf;"

You can now create a server block for your main site in the /etc/nginx/conf.d/ directory. Then run gitlab-ctl reconfigure to pick up the changes.

You can also disable the bundled Nginx all together and install the distro version if you want by adding:

nginx['enable'] = false

Now you should be able to install and configure Redmine as you normally would. See their docs on using it with Nginx for more info.