Reputation: 3329
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
Reputation: 3329
Using a reverse-proxy, I need an extra subdomain for my gitlab-docker-registry.
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