-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Best practice for making gitlab ssh port available externally #38
Comments
I am currently solving this by using haproxy and have moved the main host ssh daemon off to another port. |
@jwthomp Currently there are 2 ways you can do this.
For example, add Make your pick. |
@jwthomp You then basically just forward requests on the virtual interface to your gitlab container's external IP address. I also added a DNS entry, which points to the virtual interface, e.g. gitlab.example.com. This lets you use gitlab without changing the docker host's ssh port. I planned on writing a tutorial on this method but http://blog.codeaholics.org/2013/giving-dockerlxc-containers-a-routable-ip-address/ outlines it pretty well. It should get you through the whole process. |
@jwthomp @mbrgm thats pretty sweet. Note that once moby/moby#4441 makes its way into docker master you will not require any extra setup. Just adding The feature is already added and is currently being tested and syntax is being finalized, so i think its only a couple of weeks away from landing into the master. As the saying goes "keep your eyes peeled" |
closing this issue. |
In my specific situation, where docker-gitlab is run inside the boot2docker-vm(host os is rhel 6.4, the kernel (2.6.32) is too old to run recent version of docker), the only workaround that I came up with is to configure |
Hi,
I've gotten gitlab running inside of docker now and was able to backup from my old gitlab vm and restore it into the new docker container. I am now at the point where the docker gitlab instance is listening to port 22 on it's private IP.
I am looking for any information on the best way to expose that through the public host interface?
Thank you!
Jeff
The text was updated successfully, but these errors were encountered: