Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改gitlab.rb的external_url 携带端口则无法启动 #79

Closed
jipeigong opened this issue May 20, 2019 · 1 comment
Closed

修改gitlab.rb的external_url 携带端口则无法启动 #79

jipeigong opened this issue May 20, 2019 · 1 comment

Comments

@jipeigong
Copy link

你好我遇到一个问题

命令:
docker run --name gitlab -i -t -d -p 9999:80 --hostname xxxx.xx --restart unless-stopped -v D:/work/docker/disk/gitlab:/data --net baseNetwork --ip 172.18.0.6 twang2218/gitlab-ce-zh:11.1.4

考虑到每次重启容器,git拉取代码的path前缀都会被重置为默认的host,端口为80,所以启动后修改配置文件:

vim /etc/gitlab/gitlab.rb
external_url 'http://xxxx:9999'
gitlab-ctl reconfigure

此时无法启动

重新修改去掉端口

vim /etc/gitlab/gitlab.rb
external_url 'http://xxxx'
gitlab-ctl reconfigure

启动成功

这里的疑问就是为什么无法设置端口,因为无法修改次端口会导致每次启动后去修改gitlab.yml,将80修改为9999,然后再gitlab-ctl restart

@jipeigong
Copy link
Author

项目无人维护关闭问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant