通过docker-compose安装
version: '3'
services:
gitlab:
image: twang2218/gitlab-ce-zh
container_name: gitlab-ce-zh
restart: always
hostname: '192.168.90.6'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url "http://192.168.90.6:9090"
gitlab_rails['gitlab_shell_ssh_port'] = 2222
gitlab_rails['gitlab_email_enabled'] = true
gitlab_rails['gitlab_email_from'] = '137801443@qq.com'
gitlab_rails['gitlab_email_display_name'] = 'hfy'
gitlab_rails['gitlab_email_reply_to'] = 'yagmiz@163.com'
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.mxhichina.com"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "137801443@qq.com"
gitlab_rails['smtp_password'] = "137801443aa"
gitlab_rails['smtp_domain'] = "http://192.168.90.6"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_openssl_verify_mode'] = 'peer'
gitlab_rails['smtp_tls'] = true
ports:
- '9090:9090'
- '2222:22'
volumes:
- '/data/gitlab/config:/etc/gitlab'
- '/data/gitlab/logs:/var/log/gitlab'
- '/data/gitlab/data:/var/opt/gitlab'
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "10"
networks:
backend:
driver: bridge