
Installation: In order to install GitLab, you will need a server with at least two cores and 4GB of RAM. I will assume you already have Ubuntu Server up and running, and have access to an account with sudo rights. I’m going to walk you through the process of installing GitLab on Ubuntu Server 16.04. Note: If you have SSL certificate then you can uncommnet all commented (#) lines in above docker-compose file and run it with following commands $docker-compose up -d And for check logs: $docker-compose logs -f web It will take time to statru up all the services up and running. Run it with docker-compose.yaml file: web: image: 'gitlab/gitlab-ce:latest' restart: always hostname: 'git' environment: GITLAB_OMNIBUS_CONFIG: | external_url ' ' #nginx = true #nginx = '/etc/gitlab/ssl/cert.pem' #nginx ='/etc/gitlab/ssl/privatekey.pem' ports: - '80:80' #- '443:443' volumes: - '/srv/gitlab/config:/etc/gitlab' - '/srv/gitlab/logs:/var/log/gitlab' - '/srv/gitlab/data:/var/opt/gitlab' #- '/etc/gitlab/ssl:/etc/gitlab/ssl'

Let’s Strat Installation A) On Container Environment: Run it with single docker command: docker run -d -name git-server -v /srv/gitlab/config:/etc/gitlab -v /srv/gitlab/data:/var/opt/gitlab -p 80:80 -p 443:443 gitlab/gitlab-ce:latest There are two ways to install GitLab Server a). GitLab allows you to host an on-premise Git repository that can be accessed from either your local LAN or (if you have an available public IP address) from outside your company. GitLab is fairly easy to install and incredibly simple to use.

Set Up GITLAB Server and host your own Git repositories
