gitlab设置项目clone地址

直接在线修改地址

虽然是个小问题但是我查了很多都是说要去修改配置文件,可是我是docker部署的,修改配置文件之后我还要重新打包镜像想想都不咋规范,后才终于知道可以直接设置,不要改配置文件!!!

构建gitlab

复制代码
docker run --detach \
--env GITLAB_OMNIBUS_CONFIG="external_url='http://192.168.1.100:35080'; gitlab_rails['gitlab_ssh_host'] = '192.168.1.100'; gitlab_rails['gitlab_shell_ssh_port'] = 35022" \
--memory 4GB \
--memory-swap 6GB \
--name gitlab \
--hostname gitlab \
--restart on-failure \
--network my-bridge \
--publish 35080:80 \
--publish 35022:22 \
--volume $PWD/gitlab/config:/etc/gitlab \
--volume $PWD/gitlab/logs:/var/log/gitlab \
--volume $PWD/gitlab/data:/var/opt/gitlab \
gitlab/gitlab-ce:15.6.3-ce.0
相关推荐
极小狐1 天前
如何创建极狐GitLab 私密议题?
数据库·ci/cd·gitlab·devops·mcp
极小狐3 天前
如何使用极狐GitLab 的外部状态检查功能?
数据库·ci/cd·gitlab·devops·mcp
极小狐3 天前
如何对极狐GitLab 议题进行过滤和排序?
人工智能·git·机器学习·gitlab
极小狐3 天前
如何创建并使用极狐GitLab 部署令牌?
运维·git·ssh·gitlab·github
极小狐3 天前
极狐GitLab 的合并请求部件能干什么?
运维·git·安全·gitlab·极狐gitlab
极小狐3 天前
极狐GitLab 议题权重有什么作用?
开发语言·数据库·chrome·c#·gitlab
极小狐3 天前
极狐GitLab 的压缩和合并是什么?
运维·git·ssh·gitlab·github
极小狐4 天前
极狐GitLab 合并请求依赖如何解决?
运维·git·ssh·gitlab·github
极小狐5 天前
极狐GitLab 项目功能和权限解读
运维·git·安全·gitlab·极狐gitlab
宁酱醇5 天前
GitLab_密钥生成(SSH-key)
运维·ssh·gitlab