mkdir -p /data/docker/volumes/gitlab
chmod 777 /data/docker/volumes/gitlab
cd /data/docker/volumes/gitlab
mkdir config
mkdir logs
mkdir data
sudo docker run --detach --hostname gitlab.example.com --publish 4443:443 --publish 8880:80 --publish 4422:22 --name gitlab --restart always --volume /data/docker/volumes/gitlab/config:/etc/gitlab --volume /data/docker/volumes/gitlab/logs:/var/log/gitlab --volume /data/docker/volumes/gitlab/data:/var/opt/gitlab gitlab/gitlab-ce:latest
配置邮箱
gitlab_rails[‘smtp_enable‘] = true
gitlab_rails[‘smtp_address‘] = "smtp.163.com"
gitlab_rails[‘smtp_port‘] = 994
gitlab_rails[‘smtp_user_name‘] = "[email protected]"
gitlab_rails[‘smtp_password‘] = "your password"
gitlab_rails[‘smtp_authentication‘] = "login"
gitlab_rails[‘smtp_enable_starttls_auto‘] = true
gitlab_rails[‘smtp_tls‘] = true
gitlab_rails[‘gitlab_email_from‘] = ‘[email protected]‘
gitlab_rails[‘smtp_domain‘] = "mail.163.com"
https://blog.csdn.net/wo18237095579/article/details/81082349
原文地址:https://www.cnblogs.com/antball/p/9717459.html
时间: 2024-11-08 09:29:14