Set up GitLab with docker

A memo to set up CICD tool GitLab with docker

About GitLab

https://www.gitlab.jp/

--Git repository service / tool developed by GitLab Inc. (GitHub-like) --There is a SaaS version and " self-managed GitLab "that you set up yourself. --Software is MIT licensed OSS --There are free CE (Community Edition) and paid EE (Enterprise Edition) --EE has more functions than CE. Even if you use CE with self-managed GitLab, it is recommended to install EE (because it is easy to upgrade later)

reference) ・ CE and EE https://www.gitlab.jp/install/ce-or-ee/

・ Function comparison of SaaS version https://about.gitlab.com/pricing/saas/feature-comparison/

self-managed GitLab setup

--There are many official installation methods --Install directly on various OS (yum / rpm, etc.) --Installed on Kubernetes with HELM --Install with docker --Use each cloud service (AWS / GCP / Azule)

https://about.gitlab.com/install/

For cloud service use, there is no managed GitLab, for example, in AWS, EC2 / RDS / ELB / S3 / Elasticache / IAM etc. are combined to firmly build GitLab

https://docs.gitlab.com/ee/install/aws/

docker setup

--The official docker image is published on docker Hub

https://hub.docker.com/r/gitlab/gitlab-ee

--docker / docker-compose / docker swarm There are steps for each

https://docs.gitlab.com/omnibus/docker/

――For example, in the case of docker, it looks like this

sudo docker run --detach \
  --hostname gitlab.example.com \
  --publish 443:443 --publish 80:80 --publish 22:22 \
  --name gitlab \
  --restart always \
  --volume $GITLAB_HOME/config:/etc/gitlab \
  --volume $GITLAB_HOME/logs:/var/log/gitlab \
  --volume $GITLAB_HOME/data:/var/opt/gitlab \
  gitlab/gitlab-ee:latest

Start GitLab with docker

――I just run docker with the official image, but it takes some time to start, and even if I access it immediately, the following error occurs.

--Wait a few minutes and you will be able to log in. When accessing for the first time, from the password setting of the administrator (root)

--If you set the root password, the screen will switch to the login screen below, so log in with the username as root and the password as the previous one.

--On the top screen below

Recommended Posts

Set up GitLab with docker
mysql doesn't start up with docker.
Set up ImpressPages 5.0 with LAMP on CentOS 7.3
Communicate Gitlab and Gitlab Runner launched with Docker
Set up Docker Registry locally on CentOS 7
Install Zabbix 5.0 with Docker → Set up Slack notification in case of failure
I can't do docker-compose up -d with docker
Set up a CentOS virtual server with Vagrant
Launch MariaDB with Docker
Rails deploy with Docker
Run Pico with docker
Explode Docker with WSL2
Use Puphpeteer with Docker
Operate Emby with Docker
Try WildFly with Docker
Use ngrok with Docker
Run Payara with Docker
[Docker] Connection with MySQL
Php settings with Docker
Getting Started with Docker
Disposable PHP with Docker
Install Composer with Docker
[Introduction to Docker x ECS] ECS deployment with docker compose up
Run Android instrumentation unit tests with GitLab CI + Docker
(For myself) Build gitlab with ubuntu18.04 + docker for home (Note)
Pytorch execution environment with Docker
Use GDAL with Python with Docker
Build GitLab / Mattermost with DockerForWindows
Deploy with EC2 / Docker / Laravel
Manually set docker file sharing
Docker management with VS Code
Set up Gitolite on CentOS 7
How to set Docker nginx
Run Rails whenever with docker
Get started with DynamoDB with docker
Docker autostart settings with wsl2
[Docker] Rails 5.2 environment construction with docker
Spring Boot starting with Docker
Build docker environment with WSL
Version control CocoaPods with Docker
Set cookies with Spring Boot
Web application built with docker (1)
Set up ansible-playbook on Ubuntu 20.04
I tried BIND with Docker
React environment construction with Docker
Set up Django on Ubuntu 16.04 with PostgreSQL and Gunicorn on ECS
How to set up a proxy with authentication in Feign
Build DynamoDB local with Docker
[Docker] Use whenever with Docker + Rails
Using PlantUml with Honkit [Docker]
When building docker image with GitLab CI, wait until docker daemon starts
[Note] How to restart the Windows container set up with docker-compose
Set up a Wordpress Docker environment without using the Worpdress image
Install Docker on Ubuntu and set up remote connection using tls
Rails + MySQL environment construction with Docker
Create a Vue3 environment with Docker!
Node.js environment construction with Docker Compose
Run lambda with custom docker image
Install java with Ubuntu 16.04 based Docker
Build a Node.js environment with Docker
Environment construction with Docker for beginners