여러분의 후원은 큰 힘이 됩니다. 기업은행 35611080101018
반응형
compose.yaml
version: '3.8' # docker-compose.yml에 사용될 문법 버전을 정의합니다.
services:
gitlab:
image: 'gitlab/gitlab-ce:latest'
container_name: gitlab
restart: always
hostname: 'gitlab.example.com'
shm_size: '1gb'
environment:
GITLAB_TIMEZONE: Asia/Seoul
GITLAB_OMNIBUS_CONFIG: |
# 자체 SSL 인증
#letsencrypt['enable']=true
#letsencrypt['contact_emails']=['<이메일 주소>'] # 만료일에 근접한 경우 받아볼 이메일 주소
#letsencrypt['auto_renew_hour'] = "12"
#letsencrypt['auto_renew_minute'] = "30"
#letsencrypt['auto_renew_day_of_month'] = "*/7"
#external_url 'https://gitlab.example.com'
external_url 'http://gitlab.example.com'
gitlab_rails['gitlab_shell_ssh_port'] = 65512
#SMTP
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = 'smtp.gmail.com'
gitlab_rails['smtp_port'] = 587
gitlab_rails['smtp_user_name'] = "<구글 아이디>"
gitlab_rails['smtp_password'] = "<구글 앱 비밀번호>"
gitlab_rails['smtp_domain'] = 'gmail.com'
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = false
gitlab_rails['smtp_openssl_verify_mode'] = 'peer'
#LDAP
gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
main: # 'main' is the GitLab 'provider ID' of this LDAP server
label: 'LDAP'
host: '10.10.1.250' # NAS 주소
port: 389
uid: 'uid'
bind_dn: 'uid=root,cn=users,dc=<메일주소 ex) naver>,dc=kr'
password: '<LDAP 비밀번호>'
encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
verify_certificates: true
smartcard_auth: false
active_directory: false
allow_username_or_email_login: false
lowercase_usernames: false
block_auto_created_users: false
base: 'dc=<메일주소 ex) naver>,dc=kr'
user_filter: ''
EOS
#gitlab logrotate _ log
logging['logrotate_frequency'] = "weekly"
logging['logrotate_rotate'] = 52
logging['logrotate_compress'] = "compress"
logging['logrotate_method'] = "copytruncate"
logging['logrotate_delaycompress'] = "delaycompress"
nginx['enable'] = true
nginx['listen_port']=80
nginx['client_max_body_size']='10G' # 깃랩 업로드 용량 크기
#nginx logrotate _ log
nginx['logrotate_frequency'] = "weekly"
nginx['logrotate_rotate'] = 52
nginx['logrotate_compress'] = "compress"
nginx['logrotate_method'] = "copytruncate"
nginx['logrotate_delaycompress'] = "delaycompress"
ports:
- '65512:22'
- '65510:80'
- '65511:443'
# volumes:
# - '/home/gitlab/config:/etc/gitlab'
# - '/home/gitlab/logs:/var/log/gitlab'
# - '/home/gitlab/data:/var/opt/gitlab'
networks:
our_net:
driver: bridge
docker-compose -f compose.yaml up
ID : root
초기 비밀번호는 아래 방법을 통해 변경해주시면 됩니다.
ROOT 관리자 비밀번호 분실한 경우 - 변경
도커 프로세스 확인 docker ps -a 초기 비밀번호 확인 docker exec -it 92a459a0b52d grep 'Password:' /etc/gitlab/initial_root_password gitLab Docker 컨테이너 접속 docker exec -it 92a459a0b52d /bin/bash gitLab Console 실행 gitlab-rails c
ws0051.tistory.com
반응형
'소스형상관리도구 > GitLab' 카테고리의 다른 글
gitLab - 프로젝트 push 하기 (0) | 2023.09.11 |
---|---|
CentOs7 Gitlab install (0) | 2023.07.15 |
ROOT 관리자 비밀번호 분실한 경우 - 변경 (0) | 2023.07.04 |
SMTP 설정 (0) | 2023.06.29 |
역할 권한 구분표. (0) | 2023.06.23 |