Self-hosted gitlab and gitlab container registry
Hello,
I'm running gitlab with command:
docker run --detach --hostname gitlab.site.com \
-p 443:443 -p 80:80 -p 22:22\
--name gitlab \
--restart always \
--volume /srv/gitlab/config:/etc/gitlab:Z \
--volume /srv/gitlab/logs:/var/log/gitlab:Z \
--volume /srv/gitlab/data:/var/opt/gitlab:Z \
gitlab/gitlab-ce:latest
also, I'm running registry with command:
docker run -d -p internal_ip:5000:5000 --restart=always --name registry registry:latest
Changed settings in gitlab.rb
registry_external_url 'https://reg.gitlab.site.com'
gitlab_rails['registry_enabled'] = true
gitlab_rails['registry_host'] = "reg.gitlab.site.com"
gitlab_rails['registry_api_url'] = "http://internal_ip:5000"
in logs I'm getting this errors:
2019/05/04 02:34:20 [error] 1064#0: *20518 connect() failed (111: Connection refused) while connecting to upstream, client: client_ip, server: reg.gitlab.site.com, request: "GET / HTTP/1.1", upstream: "http://[::1]:5000/", host: "reg.gitlab.site.com"
Also, gitlab doesn't show me tags for images:
how could I fix it? (login and pushing into registry from local and remote works fine)
Thanks.
Edited by Aleksej