Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitLab with Docker on Synology NAS - HTTPS

I would like to set up GitLab with https on Synology DS918+.

I am using DOCKER in DSM. I downloaded the latest GitLab Community docker image.

enter image description here

And I used Putty to ssh into the NAS and create keys using openssl.

1) Create a key into cert folder:

mkdir /volume1/docker/gitlab/certs
cd /volume1/docker/gitlab/certs
openssl genrsa -out gitlab.key 2048
openssl req -new -key gitlab.key -out gitlab.csr
openssl x509 -req -days 3650 -in gitlab.csr -signkey gitlab.key -out gitlab.crt
openssl dhparam -out dhparam.pem 2048
chmod 400 gitlab.key

2) I added two additional variables in custom image to set up the environment for HTTPS:

enter image description here

3) In the last part:

  • I remove port 80 that was first set in the default image.
  • And add ports 30000/30001 for 22/443 port bindings that were set to auto in the default image:

enter image description here

When I go to browser for https://synologyip.com:30000 GitLab can't be reached.

Any guesses on what have I missed or done wrong?

Thanks!

like image 944
Guid Avatar asked Jul 19 '26 11:07

Guid


1 Answers

I don't know about you, but I had to create the cert in the following folder:

/volume1/docker/gitlab/gitlab/certs

Note the repeated gitlab directory

like image 97
Alberto Avatar answered Jul 21 '26 05:07

Alberto



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!