GITLAB Docker image - GITLAB_OMNIBUS_CONFIG ignored

Hello,

I think that it’s a newbee question but I am not able to add configuration items to main GITLAB configuration during the startup of a gitlab docker.

I tried this which is in the documentation …

docker run --detach
–hostname gitlab.example.com
–env GITLAB_OMNIBUS_CONFIG=“external_url ‘http://my.domain.com/’; gitlab_rails[‘lfs_enabled’] = true;”
–publish 443:443 --publish 80:80 --publish 22:22
–name gitlab
–restart always
–volume /srv/gitlab/config:/etc/gitlab
–volume /srv/gitlab/logs:/var/log/gitlab
–volume /srv/gitlab/data:/var/opt/gitlab
gitlab/gitlab-ce:latest

When I check the parameter gitlab_rails[‘lfs_enabled’] on /srv/gitlab/config/gitlab.rb, it begins with #.
I tried also with docker compose whithout success. An idea where I need to look?

Thanks.