githubu[gitlab]的简易安装记录

作者在 2021-11-16 20:20:46 发布以下内容

export GITLAB_HOME=/var/www/www.githubu.com

sudo docker run --detach \
  --hostname www.githubu.com \
  --publish 443:443 --publish 80:80 --publish 23:23 \
  --name gitlab \
  --restart always \
  --volume $GITLAB_HOME/config:/etc/gitlab \
  --volume $GITLAB_HOME/logs:/var/log/gitlab \
  --volume $GITLAB_HOME/data:/var/opt/gitlab \
  gitlab/gitlab-ee:latest

详细安装教程:https://docs.gitlab.com/ee/install/docker.html

进入容器内部:

docker exec -it gitlab /bin/bash


进入 Rails Console:
gitlab-rails console


查看所有用户:
irb(main):005:0> User.all


Ruby | 阅读 442 次
文章评论,共0条
游客请输入验证码
浏览2800452次
文章归档