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 git@gitlab.example.com:user1/prj1~~
I need to be ~~git clone git@gitlab.example.com:8888:user1/prj1~~
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.