How to implement external in the/etc/gitlab/gitlab. rb file_ URL function
How to implement external in the/etc/gitlab/gitlab. rb file_ URL function, I want to access it through traffic configuration/gitlab path
You are using the sameersbn/gitlab image and want to achieve a similar effect to setting external_url in /etc/gitlab/gitlab.rb in the official gitlab image, right? https://docs.gitlab.com/omnibus/settings/configuration.html#configure-the-external-url-for-gitlab
As mentioned in https://github.com/sameersbn/docker-gitlab/issues/1763#issuecomment-536929720, sameersbn/gitlab do not use /etc/gitlab/gitlab.rb for configuration. Instead, set container's environment variable GITLAB_HOST and GITLAB_PORT.
Also set GITLAB_RELATIVE_URL_ROOT and GITLAB_HTTPS and related params on demand.
external url is built from them like:
(${GITLAB_HTTPS}==true?"https":"http")://${GITLAB_HOST}:${GITLAB_PORT}${GITLAB_RELATIVE_URL_ROOT}.
I don't know what tool you are using (so many possibility like kubernates, docker-compose and so on), but for example, this can be achieved by passing as argument for docker run command like docker run --name gitlab -it --rm --env 'GITLAB_HOST=example.com').
Lastly, all the above explanations are written in README.md, so please read it.