Docker registry

I am using gitlab 12.3.0 installed with Omnibus workflow. I have started to setup a docker registry for my contrainers with gitlab. I've reached a point where I can't go any further. The whole thing doesn't seem to work as described in the Howtos. Maybe I have something overlook!

I have setup a domain for gitlab gitlab.lan and for the registry registry.lan and added the proper certificats. Gitlab works as expected.

gitlab.rb regsitry config section:

# GitLab docker registry
registry_external_url "https://registry.lan"
gitlab_rails['registry_enabled'] = true
gitlab_rails['registry_path'] = "/var/opt/gitlab/git-data/registry"
gitlab_rails['gitlab_default_projects_features_container_registry'] = false
registry_nginx['ssl_certificate'] = "/etc/gitlab/ssl/registry.crt"
registry_nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/registry.key

If I use docker login -u <user> -p <token> registry.lan I always get error response from daemon: login attempt to https://registry.lan/v2/ failed with status: 503 Service Unavailable

If I use docker login -u <user> -p <token> gitlab.lan I could login in but I think this is wrong URL. And after that if i execute docker push registry.lan/docker-images/dev/test-image I get the following output

The push refers to repository [registry.lan/docker-images/dev/test-image]
3804c85af1a7: Retrying in 1 second
f007b40a278c: Retrying in 1 second
3456e50aea80: Retrying in 1 second
7dd4eea0238a: Retrying in 1 second
63a0a46eada9: Retrying in 1 second
fbf93044a68a: Waiting
51ec4ea28b75: Waiting
2db44bce66cd: Waiting
received unexpected HTTP status: 503 Service Unavailab

Could you please advice me what I am doing wrong!

Edited by Florian Eckert