Skip to content

Fix wrong port publising in docker run command when expose GitLab on different ports

According to .yml file given in the ( https://docs.gitlab.com/omnibus/docker/README.html#install-gitlab-using-docker-compose ) we have to bind new http(s) port to the same new http(s) port. Ex.: If new http(s) port is 12345 the publish option must be 12345:12345.

Actually, after setting parameter external_url to "http://gitlab.example.com:8929" the web server will no longer listen on port 80 (or 443 if https) but on port 8929. That's why we already have to bind the container's port to the new port.

Rem: This does not concern SSH port.

Merge request reports