diff options
author | Marin Jankovski <marin@gitlab.com> | 2017-02-27 13:53:47 +0000 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2017-02-27 13:53:47 +0000 |
commit | 9c3d21e7ac305682ca42183997908bc4dd54e4f4 (patch) | |
tree | 3707c05528407e90a5468dd6c0adf5bcc06bbbc6 /doc/administration/container_registry.md | |
parent | 75ebb196bd16bc8a0bccef706383f3848ad0bf30 (diff) | |
parent | 2e3cbb6965ecfd6e5da43b83cc4e351edfc83fbb (diff) | |
download | gitlab-ce-9c3d21e7ac305682ca42183997908bc4dd54e4f4.tar.gz |
Merge branch 'balu-update-container-registry-docs' into 'master'
Update Registry administration doc - external registry
Closes omnibus-gitlab#1361
See merge request !8497
Diffstat (limited to 'doc/administration/container_registry.md')
-rw-r--r-- | doc/administration/container_registry.md | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/administration/container_registry.md b/doc/administration/container_registry.md index a6300e18dc0..28e413ef447 100644 --- a/doc/administration/container_registry.md +++ b/doc/administration/container_registry.md @@ -466,6 +466,46 @@ If Registry is enabled in your GitLab instance, but you don't need it for your project, you can disable it from your project's settings. Read the user guide on how to achieve that. +## Disable Container Registry but use GitLab as an auth endpoint + +You can disable the embedded Container Registry to use an external one, but +still use GitLab as an auth endpoint. + +**Omnibus GitLab** +1. Open `/etc/gitlab/gitlab.rb` and set necessary configurations: + + ```ruby + registry['enable'] = false + gitlab_rails['registry_enabled'] = true + gitlab_rails['registry_host'] = "registry.gitlab.example.com" + gitlab_rails['registry_port'] = "5005" + gitlab_rails['registry_api_url'] = "http://localhost:5000" + gitlab_rails['registry_key_path'] = "/var/opt/gitlab/gitlab-rails/certificate.key" + gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry" + gitlab_rails['registry_issuer'] = "omnibus-gitlab-issuer" + ``` + +1. Save the file and [reconfigure GitLab][] for the changes to take effect. + +**Installations from source** + +1. Open `/home/git/gitlab/config/gitlab.yml`, and edit the configuration settings under `registry`: + + ``` + ## Container Registry + + registry: + enabled: true + host: "registry.gitlab.example.com" + port: "5005" + api_url: "http://localhost:5000" + path: /var/opt/gitlab/gitlab-rails/shared/registry + key: /var/opt/gitlab/gitlab-rails/certificate.key + issuer: omnibus-gitlab-issuer + ``` + +1. Save the file and [restart GitLab][] for the changes to take effect. + ## Storage limitations Currently, there is no storage limitation, which means a user can upload an |