Configuring Gitlab
see https://docs.gitlab.com/ee/install/docker.html#configuration
<syntaxhighlight lang="shell">export GITLAB_HOME=/home/gitlab</syntaxhighlight>
Reconfigure Commands
After changes to the /etc/gitlab/gitlab.rb
file run:
<syntaxhighlight lang="shell">docker exec -it gitlab /bin/bash</syntaxhighlight> or directly edit
<syntaxhighlight lang="shell">sudo docker exec -it gitlab editor /etc/gitlab/gitlab.rb</syntaxhighlight> <syntaxhighlight lang="shell">sudo docker exec -it gitlab-ctl reconfigure</syntaxhighlight>
gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = "smtp.server" gitlab_rails['smtp_port'] = 465 gitlab_rails['smtp_user_name'] = "smtp user" gitlab_rails['smtp_password'] = "smtp password" gitlab_rails['smtp_domain'] = "example.com" gitlab_rails['smtp_authentication'] = "login" gitlab_rails['smtp_enable_starttls_auto'] = true gitlab_rails['smtp_openssl_verify_mode'] = 'peer'