Docker

라즈베리파이4, Dock Gitlab 설치하기 <작성중>

LEEHANDS 2022. 2. 15. 16:59
반응형

 

https://blog.naver.com/bluerein_/222020970751

 

docker gitlab

도커에는 별의 별 이미지가 다있구나. 마이크로소프트가 깃헙을 인수하고 얼마전에 프로그래밍하는 인공지...

blog.naver.com

https://github.com/ulm0/gitlab

 

GitHub - ulm0/gitlab: GitLab CE (Docker image) for ARM devices, this is a mirror repository of

GitLab CE (Docker image) for ARM devices, this is a mirror repository of - GitHub - ulm0/gitlab: GitLab CE (Docker image) for ARM devices, this is a mirror repository of

github.com

 

설치 디렉토리 설정

mkdir -p /srv/gitlab \
  /srv/gitlab/config \
  /srv/gitlab/log \
  /srv/gitlab/opt

 

그리고 GitLab 시작

 

docker run -d \
--hostname 192.168.30.76 \
-p 443:443 -p 80:80 -p 20022:22 \
--name gitlab \
--restart always \
-v /srv/gitlab/config:/etc/gitlab \
-v /srv/gitlab/logs:/var/log/gitlab \
-v /srv/gitlab/data:/var/opt/gitlab \
ulm0/gitlab

 

-d : --detach -> Run container in background and print container ID

-p : --publish-all -> Publish all exposed ports to random ports

-h : --hostname string -> Container host name

-v : --volume list  -> Bind mount a volume

     --volume-driver stringdo

     --volumes-from list

 

반응형