Synology Docker Gitlab suite update
warn
Environment settings will be cleared during upgrade Synology has a bit of this. . .
Basically just put Add it back
Then change the port number from 80 to 443
Install certificate
The default path where the gitlab application is configured to look for SSL certificates is /home/git/data/certs, but this can be changed using the SSL_KEY_PATH, SSL_CERTIFICATE_PATH, and SSL_DHPARAM_PATH configuration options.
GITLAB_HTTPS=true
SSL_SELF_SIGNED=true
How to enable HTTPS support
HTTPS support can be enabled by setting the GITLAB_HTTPS option to true. Additionally, when using a self-signed SSL certificate, you also need to set the SSL_SELF_SIGNED option to true. Assume we use a self-signed certificate In this configuration, any request made over the normal http protocol will automatically be redirected to use the https protocol. However, this is not the best option when using load balancing.
chmod 400 /volumn1/docker/gitlab/gitlab/certs/gitlab.key
cp gitlab.key /volumn1/docker/gitlab/gitlab/certs/
cp gitlab.crt /volumn1/docker/gitlab/gitlab/certs/
cp dhparam.pem /volumn1/docker/gitlab/gitlab/certs/
chmod 400 /volumn1/docker/gitlab/gitlab/certs/gitlab.key
Reference article
docker run --name gitlab -d \
--publish 10022:22 --publish 10080:80 --publish 10443:443 \
--env ' GITLAB_SSH_PORT=10022 ' --env ' GITLAB_PORT=10443 ' \
--env ' GITLAB_HTTPS=true ' --env ' SSL_SELF_SIGNED=true ' \
--volume /srv/docker/gitlab/gitlab:/home/git/data \
sameersbn/gitlab:14.1.3