Info about GitLab Self hosted

Hii, I have a gitlab self hosted on docker and I am doing all the gitlab configurations using the GITLAB_OMNIBUS_CONFIG in the docker-compose.
Now I know, for backup we need to take backup of data and gitlab.rb gitlab-secrets.json and trusted-certs. But since I am doing all config changes directly in docker compose, do i really need to take backup of gitlab.rb? Or should I just take backup of my docker-compose.

And what is a good way, defining configurations directly in docker-compose or in gitlab.rb?