Posts

Showing posts with the label GitLab Server

Set Up GITLAB Server and host your own Git repositories

Image
  GitLab is fairly easy to install and incredibly simple to use. 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. There are two ways to install GitLab Server a). On Containers Environment (Docker) b). On Host Machine (Bare Metal Servers) 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 Run it with docker-compose.yaml file: web: image: 'gitlab/gitlab-ce:latest' restart: always hostname: 'git' environment: GITLAB_OMNIBUS_CONFIG: | external_url ' https://mygit.abc.in' #nginx['redirect_http_to_https'] = true #nginx['ssl_certificate'] = '/etc/gitlab/ssl/cert.pem' #nginx['ssl_certificate_k...