Gitlab on Ubuntu NodeJS server

January 30, 2015 2k views


I have a Ubuntu Node.js server which runs our MeteorJS apps.

I would also like to (In the near future) install GitLab on a subdomain in order to control private version control and app deploys within my company. I was wondering if it is possible since Gitlab uses Rails.

Would installing rails conflict with Node.JS ?

Also if Rails will not conflict with Node.JS, is it also possible to install Apache + MySQL in order to run PHP deployments controlled from Gitlab?

Summary: "Can I have Node.JS + MongoDB, Rails, and Apache + MySQL, all installed at the same time in order to control Meteor + Node + MongoDB sites, PHP + MySQL sites, and use version control with GitLab on a subdomain to control development and deployments?"

Aperture Studios

2 Answers

It's certainly possible. Though there are some drawbacks to putting multiple unrelated services on the same host. Problems with one site may lead to downtime for all of your projects, and of course they will all be competing for resources.

If you want to give it a shot, I'd suggest setting up Nginx in front of you other services as reverse proxy. Check out this tutorial:

You'll also want to take a look at the README for GitLab's "Omnibus" installer as well as this doc on Nginx settings for GitLab. GitLab ships its own bundled version of Nginx. For your purposes, you'll likely want to disable that.

Let us know how it goes, or if you run into a more specific issue.

by Etel Sverdlov
This tutorial covers combining apache and nginx to serve sites with more speed. This article takes you from a fresh DigitalOcean droplet to one where apache and nginx are configured to work together.

@asb Thanks for your response! I already have Nginx setup so i am at a good starting point.

I plan to separate services over different droplets, ex: "NYC3 = Node.JS, London = Apache, San Fransisco = Gitlab" etc... But i would like to start off on one droplet to get started.

Have another answer? Share your knowledge.