gitlab설치 메뉴얼을 검색해보면 그 방법이 쉽지 않아 보인다.


그런데 docker로 설치를 하는 방법이 있어서 시도해봤다.


https://gitlab.com/gitlab-org/gitlab-ce/tree/master/docker


테스트한 운영체제는 Ubuntu 14.04


계정으로 로그인을 하고 메뉴얼대로 명령어를 실행시킨다.

 -docker는 우분투 포함 설치본이 아니라 최신 배포폰으로 설치를 했다.


sudo docker run --detach \
    --publish 8443:443 --publish 8080:80 --publish 2222:22 \
    --name gitlab \
    --restart always \
    --volume /srv/gitlab/config:/etc/gitlab \
    --volume /srv/gitlab/logs:/var/log/gitlab \
    --volume /srv/gitlab/data:/var/opt/gitlab \
    gitlab/gitlab-ce:latest

설치 끝


정말이다. 이게 끝이다.


8080포트로 접속을 하면 접속 UI가 보인다.


그런데 이상태로는 운영을 할 수 없다.


sudo docker exec -it gitlab /bin/bash

You can also edit just /etc/gitlab/gitlab.rb:

sudo docker exec -it gitlab vi /etc/gitlab/gitlab.rb

You should set the external_url to point to a valid URL.

You may also be interesting in Enabling HTTPS.

To receive e-mails from GitLab you have to configure the SMTP settings, because Docker image doesn't have a SMTP server.

Note that GitLab will reconfigure itself at each container start. You will need to restart the container to reconfigure your GitLab:


설정을 수정하면 된다.


호스트에서

/srv/gitlab/config의 gitlab.rb 파일을 루트 계정에서 수정해도 된다.