docker gitlab 邮件无效
大家讲道理
大家讲道理 2017-04-22 08:59:49
0
2
707

docker的安装镜像是sameersbn,gitlab的版本是8.2.2。现在redis,mysql,gitlab都安装好了,网页也能打开,但新用户注册发送的邮件不能成功,每次都要管理员去确认。

redis启动

docker run \
--name=gitlab_redis \
-tid \

sameersbn/redis:latest

mysql启动

docker run \
--name=gitlab_mysql \
-tid \
-e 'DB_NAME=gitlabhq_production' \
-e 'DB_USER=gitlab' \
-e 'DB_PASS=password' \
-v /opt/gitlab/mysql:/var/lib/mysql \
sameersbn/mysql:latest


gitlab 启动

docker run \
--name='gitlab' \
-itd \
--link gitlab_mysql:mysql \
--link gitlab_redis:redisio \
-e 'GITLAB_TIMEZONE=Beijing' \
-e 'GITLAB_PORT=10080' \
-e 'GITLAB_SSH_PORT=10022' \
-e 'GITLAB_ROOT_PASSWORD=rootroot' \
-e 'GITLAB_HOST=192.168.10.231' \
-e 'GITLAB_SECRETS_DB_KEY_BASE=gitlab' \
\
-e 'SMTP_ENABLED=true' \
-e 'SMTP_DOMAIN=163.com' \
-e 'SMTP_HOST=stmp.163.com' \
-e 'SMTP_PORT=25' \
-e 'SMTP_USER=xxx@163.com' \
-e 'SMTP_PASS=*' \
\
-p 10022:22 \
-p 10080:80 \
-v /var/run/docker.sock:/run/docker.sock \
-v $(which docker):/bin/docker \
-v /opt/gitlab/data:/home/git/data \
-v /opt/gitlab/log:/var/log/gitlab \
sameersbn/gitlab:latest

GITLAB_HOST,必须是内网吗。
大神们帮我看看 ,邮件总是不能成功发送。是什么原因引起的

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all (2)
PHPzhong

Has the poster’s problem been solved? I also have this problem now?

    巴扎黑

    -e 'SMTP_HOST=stmp.163.com', smtp is written as stmp, I was not careful

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!