I'm running a gitlab docker image on Ubuntu server. docker is started through a systemd service. the command is:
docker run --hostname example -p 9401:80 -p 9402:443 -p 9403:22 --name gitlab --volume /srv/gitlab/data:/var/opt/gitlab --volume /srv/gitlab/logs:/var/log/gitlab --env GITLAB_OMNIBUS_CONFIG="external_url ='example:9401';gitlab_rails['gitlab_port'] = 9401; gitlab_rails['gitlab_shell_ssh_port']=9403;" example:9104/gitlab/gitlab-ce:10.4.3-ce.0
SSH url
ssh://git@example:9403/root/test.git
HTTP url
http://example/root/test.git
- How to show http and https port in git url, just like the ssh url? I need port 9401 to be visible in http git url