Nginx['log_format'] in docker compose

I’m trying to use the docker gitlab/gitlab-ce to make a local Gitlab in a virtual machine for testing. Everything works fine, but I want to change the nginx logs format.

This is who the docker compose file looks like:

But when i compose it says the variables are not set.

I guess I’m doing something wrong, but this is all I get as information Logs on Linux package installations | GitLab

Any ideas?