Issue during a gitlab registry configuration

Hello every one,

i’m trying to configure gitlab registry on my gitlab (i used the container gitlab/gitlab-ce) but i didn’t reach that, those are my configurations:
my docker-compose file for gitlab*
version: ‘3’
image: ‘gitlab/gitlab-ce:latest’
container_name: ‘gitlab-ce’
restart: always
hostname: ‘
external_url ‘
- ‘80:80’
- ‘443:443’
- ‘22:22’
- ‘5005:5005’
- ‘/srv/gitlab/config:/etc/gitlab’
- ‘/srv/gitlab/logs:/var/log/gitlab’
- ‘/srv/gitlab/data:/var/opt/gitlab’

***********adding certificat on docker

add the cert in trusted docker certs in this location:

edit gitlab.rb***
add in gitlab.rb :
external_url “
registry_external_url “

*******configure /etc/hosts to add

then i access to my gitlab container in order to apply my edited configuration on gitlab.rb but when i do : gitlab-ctl reconfigure this is what a see as an error:

Running handlers:
There was an error running gitlab-ctl reconfigure:

letsencrypt_certificate[] (letsencrypt::http_authorization line 5) had an error: RuntimeError: acme_certificate[staging] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb line 25) had an error: RuntimeError: ruby_block[create certificate for] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/acme/resources/certificate.rb line 108) had an error: RuntimeError: [] Validation failed, unable to request certificate

Running handlers complete
Chef Client failed. 14 resources updated in 02 minutes 52 seconds