Z.J
Z.J

Reputation: 349

Access Gitlab container via https

I had a Docker container created in Powershell using the commands shown.

docker run --detach 
  --hostname gitlab.example.de 
  --ip 192.168.178.35 
  --publish 443:443 --publish 80:80 --publish 22:22 
  --name gitlab 
  --restart always 
  --volume $env:GITLAB_HOME/config:/etc/gitlab 
  --volume $env:GITLAB_HOME/logs:/var/log/gitlab 
  --volume $env:GITLAB_HOME/data:/var/opt/gitlab 
  --shm-size 256m 
  gitlab/gitlab-ee:latest 

The creation of the container worked. Now I can reach gitlab in the browser via http://192.168.178.35.

Unfortunately https does not work. When I enter https://192.168.178.35 in my brwoser, it shows there the following error message:

Error: Secure connection failed.

Can someone help me and tell me what I need to do to set up access via https?

Upvotes: 1

Views: 226

Answers (1)

VonC
VonC

Reputation: 1325047

Try first with gitlab/gitlab-ce:15.4.0-ce.0, the community edition, instead of gitlab-ee (Enterprise edition)
And using a fixed label (15.4.0-ce.0), you will have less surprise if one day 'latest' changes.

Second check the "GitLab is unreachable in my browser" section, which mentions the firewall for possible root cause.

Upvotes: 1

Related Questions