HTTPS setup for the gitlab docker image

I set up Gitlab in a cloud instance using these steps:
https://docs.gitlab.com/omnibus/docker/README.html
https://docs.gitlab.com/omnibus/settings/nginx.html#enable-https
But I was unable to clone a repo over HTTPS, it said that the certificate verification failed. It seems to be because the root CA certificates are not installed in the docker image. I then followed the steps in this Stack Overflow answer:
https://stackoverflow.com/questions/35821245/github-server-certificate-verification-failed/35824116#35824116
My docker run command looks like this:
docker run --detach
–hostname gitlab.xxxxx.com
–publish 443:443 --publish 80:80 --publish 2222:22
-e “GITLAB_SHELL_SSH_PORT=2222”
–name gitlab
–restart always
–volume /data/docker-hub/gitlab/config:/etc/gitlab
–volume /data/docker-hub/gitlab/logs:/var/log/gitlab
–volume /data/docker-hub/gitlab/data:/var/opt/gitlab
gitlab/gitlab-ce:latest

Also, is the Intermediate CA certificate necessary? Do I need to add the content of both IntermediateCA.crt and domain.crt to one crt file and install it as gitlab.xxxxx.com.crt?
(I’m not good at SSL)

Anyway, please see that the admins update the documentation to include the root CA certificate addition steps. Now cloning over HTTPS works well.