Obsidian/Recognition/Tools/GitHub/Windwos에 GitLab 설치 (Docker).md

812 B


#Docker실행
# CMD관리자 권한 실행

# GitLab 설치 (C드라이브에 gitlab폴더 생성)
docker run --detach --hostname localhost --publish 9443:443 --publish 7203:80 --publish 9022:22 --name gitlab --restart always --volume C:/gitlab/config:/etc/gitlab --volume C:/gitlab/logs:/var/log/gitlab --volume C:/gitlab/data:/var/opt/gitlab gitlab/gitlab-ce:latest

#Docker Desktop에서 gitlab 실행

# 패스워드 초기화
## [container_id] 확인
docker ps -- container id 복사
docker exec -it [container_id] /bin/bash
gitlab-rails console -e production
user = User.where(id: 1).first
user.password='GITtest!@#'
user.password_confirmation='GITtest!@#'
user.save

http://localhost:7203 접속

# 패스워드 재설정
우측상단 계정이미지 - Edit profile - Password
'GITtest!@#$'