Page History
Docker 로 Gitlab 설치 시 다음의 공식 문서를 참조.
https://docs.gitlab.com/omnibus/docker/
Code Block |
---|
docker run --detach \
--hostname gitlab.example.com \
--publish 443:443 --publish 80:80 --publish 22: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 |
Gitlab 컨테이너 다운로드 후
SSH, HTTP, HTTPS 엑세스에 필요한 포트설정.
그리고 볼륨 설정 /srv/gitlab/
--restart always는 시스템 재부팅 시 컨테이너 자동으로 재실행.