GitLab installation documentation

GitLab installation documentation

GitLab is a warehouse management system for open source projects using Git as a code management tool, and build up on the basis of web services.

GitLab GitHub with similar functions, usually set up their own businesses using GitLab the Git repository management LAN.

Installation Gitlab the Docker 1

拉取gitlab、redis、postgresql

gitlab dependent and redis postgresql

docker pull sameersbn/redis 
docker pull sameersbn/postgresql 
docker pull gitlab/gitlab-ce:latest 

 

Create a container postgresql

#postgresql容器
docker run --name postgresql -d --privileged=true \
-e 'DB_NAME=gitlabhq_production' -e 'DB_USER=gitlab' \
-e 'DB_PASS=password' -e 'DB_EXTENSION=pg_trgm' \
-v /home/root/opt/postgresql/data:/var/lib/postgresql sameersbn/postgresql 

 

Create a container redis

#redis容器
docker run --name redis -d --privileged=true \
-v /home/root/opt/redis/data:/var/lib/redis sameersbn/redis

 

Creating gitlab container

docker run --name gitlab -d --link postgresql:postgresql \
--link redis:redisio --hostname 192.168.120.160 -p 10022:22 -p 8899:80 \
-e 'GITLAB_PORT=8899' -e 'GITLAB_SSH_PORT=10022' \
-e 'GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alpha-numeric-string' \
-e 'GITLAB_SECRETS_SECRET_KEY_BASE=long-and-random-alpha-numeric-string' \
-e 'GITLAB_SECRETS_OTP_KEY_BASE=long-and-random-alpha-numeric-string' \
-e 'GITLAB_HOST=192.168.120.160' -e 'SMTP_AUTHENTICATION=login' \
-v /home/root/opt/gitlab/data:/home/git/data docker.io/gitlab/gitlab-ce

 

Browser Access: http://192.168.101.64:8899

First visit to take some time.

 

Guess you like

Origin www.cnblogs.com/dayu007/p/11540730.html