0

What I did:

Created 2 docker containers using the below command and successfully navigated from the browser.

Docker Setup:

Host Machine: Linux VM Image(Assume IP is 10.1.1.1)

Jenkins Docker Command:

sudo docker run --detach \
  --hostname jenkins.local \
  --publish 8080:8080 \
  --publish 50000:50000 \
  --name jenkins \
  --restart always \
  jenkins/jenkins

GitLab CE Docker Command:

sudo docker run --detach \
  --hostname gitlab.local \
  --publish 50443:443 \
  --publish 7070:80 \
  --publish 5022:22 \
  --name gitlab \
  --restart always \
  --volume $GITLAB_HOME/gitlab/config:/etc/gitlab:Z \
  --volume $GITLAB_HOME/gitlab/logs:/var/log/gitlab:Z \
  --volume $GITLAB_HOME/gitlab/data:/var/opt/gitlab:Z \
  gitlab/gitlab-ce:latest

Browser Navigation:

What I need to achieve?

I need to access the docker applications using a friendly URL without the port as given below.

Community
  • 1
  • 1
ramkumar-yoganathan
  • 1,918
  • 3
  • 13
  • 29

0 Answers0