Editing gitlab.rb

Hello!
I would like to setup emails and incoming emails on my gitlab instance, and for that I think I need to edit the gitlab.rb file with my smtp settings or whatnot.
Now, I run my gitlab instance with docker-compose, so do I need to edit the gitlab.rb file in the config directory, or do I need to edit the one that’s in the docker container?