August 2019
Beginner
608 pages
16h 7m
English
You can start the GitLab container and let it configure itself at startup by adding the GITLAB_OMNIBUS_CONFIG environment variable to the docker run command.
Put any settings from gitlab.rb in it that you'd like and they will be loaded in the container start procedure before the internal gitlab.rb file. Some examples from the omnibus-gitlab template are as follows and you can add it as argument to docker:
--env GITLAB_OMNIBUS_CONFIG="external_url 'external_url 'GENERATED_EXTERNAL_URL' \gitlab_rails['smtp_enable'] = true \gitlab_rails['smtp_address'] = "smtp.server" \gitlab_rails['smtp_port'] = 465"gitlab_rails['gitlab_shell_ssh_port'] = 2222
Here's an example that sets the external ...
Read now
Unlock full access