Answer the question
In order to leave comments, you need to log in
How to run several services on one linux machine, but in such a way that each service has a unique ip?
Good afternoon, I have a task and its statement sounds like this:
- there is a machine with Ubuntu Server on board
- on it we raised Upsource, Youtrack, TeamCity, Gitlab
But the inconvenience is that in the internal grid we have to go to one from resources in this way:
http://192.168.137.103:40002 - Upsource
..
http://192.168.137.103:40005 - Gitlab
http://upsource
..
http://gitlab
Answer the question
In order to leave comments, you need to log in
Install nginx as a frontend and install at least a hundred services on port 80 on one IP address with access by domain name.
It's all right that you wanted to go the opposite way with Docker, I advise you to spend time on it initially, but in the future you will save more than. The fact that each piece comes with its own Java is a trifle, moreover, even a plus, if in the future each of the pieces will have different requirements for it.
In short, I advise you to get confused once, install and configure Docker, raise all the services you need, also raise the Nginx docker, configure the processing of your internal domain names there so that they refer to the desired service, and on the local network either raise your own DNS, or register for each in hosts, match the domain (for example, upsource) and the IP address of your link machine. Well, if it is on the Internet, then it will be easier to do it through subdomains.
In short, the Docker way is absolutely right now and will save you a huge amount of time in the future maintaining and developing your stuff.
Read my questions How to redirect to https when using mod_proxy? and How to redirect a virtual host to a virtual machine? Maybe something will be helpful. In principle, my decision can be extrapolated to your situation, I guess. Well, thoughts out loud - on one machine for each service there is its own virtual machine, the network of which will be configured by a bridge, i.e. will be on the same network with the rest of the machines, incl. physical. And then - my choice.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question