Docker部署gitlab

Sakura 发布于 2024-01-03 167 次阅读


docker pull gitlab/gitlab-ce
# 会在本地生成gitlab文件
docker run --name gitlab --restart always --hostname ipaddress -e external_url=http://ipaddress:80 -p 80:80 -v /data/software/gitlab/data:/var/opt/gitlab -v /data/software/gitlab/config:/etc/gitlab -v /data/software/gitlab/logs:/var/log/gitlab -d gitlab/gitlab-ce