How to modify gitlab.rb for a GItLab instance running in a docker container?

Hello,

How would I modify my gitlab.rb config for a GitLab instance running inside a docker container? I need to modify it since there are some issues with my SMTP config and Grafana’s OAuth.

Thanks,
cosmicice

Hi,

have a look there : GitLab Docker images | GitLab

you’ll find everything you need to configure gitlab docker flavour.

Hey,

That was not exactly what I need, but it’s alright, I’ve figured it out, will close this discussion with this reply, thanks!

~cosmicice

You can maintain your gitlab.rb outside the container. Just mount it to the container when running, for example:

docker run ... -v /local/path/to/gitlab.rb:/etc/gitlab/gitlab.rb:ro ...

or using volumes