t777
t777

Reputation: 3329

Using docker registry of gitlab, which is installed as docker-container

I have installed a GitLab in a docker container, that works very well.

Now, I would like to use the integrated docker-registry of GitLab.

Now, I tried, adding in gitlab.rb:

registry_external_url 'https://gitlab.team-f.de'
registry_nginx['enable'] = true
registry_nginx['redirect_http_to_https'] = false
registry_nginx['listen_https'] = false
registry_nginx['listen_port'] = 5005

Going into the container I can connect to port 5000 and 5005, but those ports do not get exposed!

How can I do this? TIA!

Upvotes: 2

Views: 785

Answers (1)

t777
t777

Reputation: 3329

Using a reverse-proxy, I need an extra subdomain for my gitlab-docker-registry.

  • gitlab.mydomain.com
  • registry.gitlab.mydomain.com

Then I configured in docker-compose.yml:

    registry_external_url 'https://registry.gitlab.mydomain.com'
    registry_nginx['enable'] = true
    registry_nginx['listen_https'] = false
    registry_nginx['listen_port'] = 5005
    registry_nginx['redirect_http_to_https'] = false

Now, it works fine. :)

Upvotes: 1

Related Questions