How to change the clone address to domain:port

I have a docker run the gitlab latest version, I configured the SSL cert success, I can access my gitlab from domainname:port, but in the gitlab, the clone address is mydomain name, lost port. ~~git clone
I need to be ~~git clone
I try to edit gitlab.rb and add external_url ‘https://yourdomain.tld:888/
then I cant access my gitlab, so i change it back.