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


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.



have a look there : GitLab Docker images | GitLab

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


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


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