版本:gitlab/gitlab-ce:12.7.5-ce.0

安装

docker run -d --hostname cert.elooyoo.com     --publish 443:443 --publish 80:80 --publish 10022:22     --name gitlab-ce     --restart always     --volume /data/gitlab/config:/etc/gitlab     --volume /data/gitlab/logs:/var/log/gitlab     --volume /data/gitlab/data:/var/opt/gitlab     --volume /data/gitlab/logs/reconfigure:/var/log/gitlab/reconfigure     gitlab/gitlab-ce:12.7.5-ce.0

 

开启这几项

最好是挂载出来

vi /etc/gitlab/gitlab.rb

external_url 'https://cert.elooyoo.com'
nginx['ssl_certificate'] = "/var/opt/gitlab/elooyoo.com/fullchain.pem"
nginx['ssl_certificate_key'] = "/var/opt/gitlab/elooyoo.com/privkey.pem"
nginx['redirect_http_to_https'] = true

重启容器

docker restart gitlab-ce

 

相关文章:

  • 2021-09-07
  • 2021-11-02
  • 2021-10-22
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
猜你喜欢
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2021-12-19
  • 2022-02-16
  • 2021-09-08
相关资源
相似解决方案