I'm using gitlab-ce on docker. These are my system specifications.
- A container of GitLab is gitlab/gitlab-ce.
- The web frontend is using external NGINX.
- GitLab is mounted under /git.
I read the the gitlab documentation for configuring of a relative url, but it does not work as expected.
My expected behavior is that I access http:localhost/git/
as a root of GitLab.
But NGINX or GiLab redirects /user/_login
instead of /git/user/_login
.
All my configurations can be found in the following git project: https://github.com/elda27/test-gitlab
And this is my Dockerfile constructing GitLab. All configurations store an above url.
FROM gitlab/gitlab-ce
WORKDIR /var/opt/gitlab/
RUN mkdir -p ./gitlab-rails/etc/ && chown git:git ./gitlab-rails/etc/
RUN mkdir -p ./gitlab-shell && chown git:git ./gitlab-shell
ADD --chown=root:root gitlab.rb /etc/gitlab/gitlab.rb
ADD --chown=root:root relative_url.rb /var/opt/gitlab/gitlab-rails/etc/relative_url.rb
ADD --chown=root:root puma.rb /var/opt/gitlab/gitlab-rails/etc/puma.yml
ADD --chown=root:git gitlab.yml /var/opt/gitlab/gitlab-rails/etc/gitlab.yml
ADD --chown=root:git config.yml /var/opt/gitlab/gitlab-shell/config.yml
WORKDIR /
Please advise configuration changes.