docker gitlab安装
Posted antball
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker gitlab安装相关的知识,希望对你有一定的参考价值。
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
以上是关于docker gitlab安装的主要内容,如果未能解决你的问题,请参考以下文章
Python3 - Docker 安装部署Gitlab代码托管教程