Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #10377

Closed
Open
Created Jul 27, 2016 by Administrator@rootOwner

Cannot use ip:port to access GitLab with Docker

Created by: zepouet

Hello,

I would like to use Gitlab with a different port than 80 because I have another business application onto (not nginx or other http server...)

So I would like to reach it though : http://192.168.50.4:480 for example. Previously I could with such configuration

    docker run --detach \
    --hostname gitlab.cloudunit.dev \
    --publish 4443:443 \
    --publish 480:80 \
    --publish 222:22 \
        --name gitlab \
        --restart always \
        --volume /home/vagrant/gitlab_home/config:/etc/gitlab \
        --volume /home/vagrant/gitlab_home/logs:/var/log/gitlab \
        --volume /home/vagrant/gitlab_home/data:/var/opt/gitlab \
        gitlab/gitlab-ce:$GL_MAJOR

With the last release 8.10.1-ce.0, it is not possible. If I remove the hosname parameter, I have this redirection after boot : http://882973a1652c/users/sign_in

882973a1652c is the container id.

It would be nice to have a new parameter hostip or to be able to use ip:port into hostname.

Thanks a lot. Best regards

Assignee
Assign to
Time tracking