HTTPS setup for the gitlab docker image

I set up Gitlab in a cloud instance using these steps:
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:
My docker run command looks like this:
docker run --detach
–publish 443:443 --publish 80:80 --publish 2222:22
–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

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
(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.