Coder Social home page Coder Social logo

robbinparrish / gitlab-deployment Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 20 KB

GitLab deployment

Shell 100.00%
deployment docker docker-compose docs gitlab gitlab-deployment gitlab-runner gitlab-server learning learning-projects linux notes server-deployment

gitlab-deployment's Introduction

Disclaimer.

The content on this account/repository provided solely for educational and informational purposes. It is not intended for use in making any kind of business, investment and/or legal decisions. Although every effort has been made to keep the information up-to-date and accurate, no representations and/or warranties, express and/or implied, completeness, accuracy, reliability, suitability, and/or availability of the content.

GitLab.

This can be used to setup a GitLab Server.
GitLab - https://about.gitlab.com/

Followings pre-configuration required before setup.

  • By default this configuration uses 22/SSH port and it is defined in the docker-compose.yml file.
    Make sure to check that this port does not conflicts with system.
    System default 22/SSH port if in use then it must be changed to something else in prior to make it work.
  • Update the external URLs for relevant domains in the docker-compose.yml file. Change following according to the configurations. NOTE - Following domain names must be added to DNS and resolvable to IP address of the system.
  • Email configuration for SMTP is by default disabled. If requires then it should be configured in the docker-compose.yml file.
  • SSL Certificates Configurations.
    • Currently this project uses single default self-signed SSL certificates for *.mydomain.com and it is used for all services. Replace the SSL certificates in configs/certs directory.
    • Update the relevant SSL certificates in the docker-compose.yml file.
      • nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.mydomain.com.crt"
      • nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.mydomain.com.key"
      • pages_nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.mydomain.com.crt"
      • pages_nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.mydomain.com.key"
      • registry_nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.mydomain.com.crt"
      • registry_nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.mydomain.com.key"

Docker Compose Version.

Always validate that docker-compose version is latest. If not then use the latest released version. As of updating this document v2.24.0 was latest released version.

Starting the container.

docker-compose up -d

Checking the container logs.

docker-compose logs -f

Once Container is successfully created, we can access the webui in the browser - http://IPADDR_OF_SYSTEM

Retrieving the default password for default admin user root.

docker-compose exec -it gitlab-server grep 'Password:' /etc/gitlab/initial_root_password

Setting up first time.

Additional Configuration

Backup and Restore

Runner Setup

Upgrading GitLab

Registry Garbage Collection

Use Image From Private Registry

Known Issues

gitlab-deployment's People

Contributors

robbinparrish avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.