GitLab can function as a fully fledged container registry for Docker containers. You can set options for it in the following section.
The first option is basically the on or off switch:
enabled: true
The next option is the hostname, which it will set:
host: registry.example.com
You can also define the network port it will listen on:
port: 5005
There is an internal address you can define that GitLab itself will connect to:
api_url: http://localhost:5000/
The GitLab registry uses a keypair, the rootcertbundle, here is the private key location:
key: config/registry.key
Set the path that is used for storage:
path: shared/registry
Set the name of the issuer of the certificate:
issuer: gitlab-issuer
Further options can be found at https://docs.gitlab.com/ee/administration/container_registry.html.