How to use letsencrypt into gitlab-container with the different port number

How to use letsencrypt into gitlab-container with the different port number
I’ve tried:

  1. to modify “gitlab.rb” content
external_url 'https://willie01.zapto.org'
letsencrypt['enable'] = true
letsencrypt['contact_emails'] = ['www@domain.com'] # This should be an array of email addresses to add as contacts
nginx['listen_port']=8443
  1. docker command

sudo docker run --name gitlab -d --publish 8443:8443 --publish 8080:80 --publish 8022:22 --restart always docker.io/gitlab/gitlab-ee

but unfortunately the certificate key doesn’t work, please help me to check this issue,thanks
image

For letsencrypt to work port 80 must be port 80 and nothing else. You redirected 8080 to port 80 which wont work.

1 Like

Dear Sir
In fact, I’ve used the letsencrypt into the VM with centos 7. it looks okay to 8443 port with https as following picture. so I hope I can use the same configure into container ,however it is working for me.