docker安装gitlab
官方文档
docker hub
https://registry.hub.docker.com/r/gitlab/gitlab-ce
安装
https://docs.gitlab.com/ee/install/docker/
初始化密码
https://docs.gitlab.com/omnibus/installation/index.html#set-up-the-initial-account
更多配置
https://docs.gitlab.com/omnibus/settings/configuration.html
注意
window 安装会有问题
这里使用ubuntu22.04LTS
安装
安装
更改服务器的 SSH 端口
您可以更改服务器的 SSH 端口,而无需在 GitLab 中再次更改 SSH 配置。在这种情况下,SSH 克隆 URL 如下所示 ssh://git@gitlab.example.com/user/project.git
。
使用编辑器打开
/etc/ssh/sshd_config
,并更改 SSH 端口:1
Port = 2424
保存文件并重新启动 SSH 服务:
1
sudo systemctl restart ssh
docker-compose.yml
1 | services: |
进入容器查看默认密码
1 | docker exec -it gitlab bash |
貌似只能utc 时间
1 | docker exec -it gitlab grep 'time_zone' /etc/gitlab/gitlab.rb |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 树灼的博客!