Docker中安装Gitlab-CE

发布时间 2023-04-28 11:20:42作者: SpringCore

官方介绍地址:https://docs.gitlab.com/ee/install/docker.html

点击查看脚本
docker run -d \
  --hostname 192.168.172.128 \
  --privileged=true \
  -e GITLAB_OMNIBUS_CONFIG="external_url 'http://192.168.172.128:3000'; gitlab_rails['initial_root_password'] = 'fanqi&coreqi&7';" \
  -p 4443:443 -p 3000:80 -p 222:22 \
  --name gitlab-ce \
  --restart always \
  -v /home/fanqi/docker/gitlab/config:/etc/gitlab:Z \
  -v /home/fanqi/docker/gitlab/logs:/var/log/gitlab:Z \
  -v /home/fanqi/docker/gitlab/data:/var/opt/gitlab:Z \
  --shm-size 512m \
  gitlab/gitlab-ce:latest