You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Current »
Gitlab 도커 설치
Docker Compose로 설치
docker-compose-gitlab.yml 파일 생성
설정 정보 입력
docker-compose-gitlab.yml
Click here to expand...
version: '3.5'
services:
gitlab:
container_name: gitlab
image: "gitlab/gitlab-ce:13.9.2-ce.0"
restart: always
hostname: "http://ice4-gitlab.kotra.or.kr"
environment:
GITLAB_OMNIBUS_CONFIG:
external_url "http://ice4-gitlab.kotra.or.kr"
ports:
- "8081:80"
- "222:22"
volumes:
- "/data/gitlab/config:/etc/gitlab"
- "/data/logs/gitlab:/var/log/gitlab"
- "/data/gitlab/data:/var/opt/gitlab"
Docker compose로 Gitlab container 생성 및 실행
docker-compose -f docker-compose-gitlab.yml up -d
Gitlab Docker에 설치 확인
docker ps