728x90
install docker
https://docs.docker.com/engine/install/ubuntu/
- docker compose도 같이 설치 되었는지 확인
install gitlab
https://docs.gitlab.com/ee/install/docker.html
create docker compose file
mkdir docker-compose.yml
- host ip address 본인 주소 입력 or 도메인명 입력
version: '3.6'
services:
web:
image: 'gitlab/gitlab-ee:latest'
restart: always
hostname: '{host ip address}'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url '{host ip address}'
gitlab_rails['gitlab_shell_ssh_port'] = 10022
# Add any other gitlab.rb configuration here, each on its own line
ports:
- '8929:8929'
- '10080:80'
- '10443:443'
- '10022:22'
volumes:
- '$GITLAB_HOME/config:/etc/gitlab'
- '$GITLAB_HOME/logs:/var/log/gitlab'
- '$GITLAB_HOME/data:/var/opt/gitlab'
shm_size: '256m'
check root password
sudo docker exec -it bin_web_1 grep 'Password:' /etc/gitlab/initial_root_password
exec gitlab
<http://gitlab.example.com:8929>
728x90
'Infrastructure > Git' 카테고리의 다른 글
Git Commit 메시지 수정 방법, --amend (0) | 2021.10.09 |
---|---|
직접 쳐보며 알아보는 Git 사용법 (기초 명령어) (0) | 2021.08.18 |
에러, git push 후 rejected (0) | 2021.04.03 |
에러, github GH007 해결 방법 (0) | 2021.03.13 |
github 서버에서 파일 수정할 경우 이클립스에서 full 또는 push 모두 충돌 발생하는 경우 해결 방법 (0) | 2021.03.13 |