Docker is developed on Ubuntu, so I finally chose Ubuntu 16.04LTS as my server.
And I found that
running GitLab using Docker image is faster than directly running it on server even on 2C4G`s server!
Now, you can search for
gitlab-ce docker image on Docker Hub and run the image like this:
$ sudo docker pull gitlab/gitlab-ce
Caution: your_domain will be used in push&pull.
For more about how to run gitlab-ce docker image, you can visit GitLab Official Docs.
With Nginx`s help, you can visit it using your domain name.
Follow these steps below to install
latest Nginx on Ubuntu 16.04LTS( Care about the version of Ubuntu ):
$ wget http://nginx.org/keys/nginx_signing.key
After install Nginx successfully, modify the file
$ sudo mv /etc/nginx/conf.d/default.conf \
Why the port is 81? Because I expose the
Web Interface on port 81
Then restart nginx service:
$ sudo nginx -s reload
Remenber, do not forget open the port you will use.
Finally, you can play with your own gitlab happily!