December 2017
Intermediate to advanced
404 pages
9h 28m
English
You can set up your own GitLab instance easily using the Docker images provided by the vendor. To start a GitLab CE server, run the following command:
$ docker container run --detach \ -e GITLAB_OMNIBUS_CONFIG="external_url 'http://192.168.2.125/';" \ --name gitlab \ -p 80:80 \ -p 22:22 \ gitlab/gitlab-ce:9.1.1-ce.0
Note the GITLAB_OMNIBUS_CONFIG environment variable that is passed into the container. This variable can be used to inject configuration code (written in Ruby) into the container; in this case, it is used to configure the GitLab instance's public HTTP address. When starting GitLab on your local machine, it is usually easiest to use your machine's public IP address for this (on Linux or macOS, use the ifconfig ...
Read now
Unlock full access