Config.php into ENV of docker file

Hi

I am trying to install nextcloud via docker using data as external drive…anyway, long story short, I need to change config.php variables using enviroment in docker-compose.yml

I tried following for nextcloud:
environment:
- NC_CHECK_DATA_DIRECTORY_PERMISSIONS=0

environment:
  - NC_CHECK_DATA_DIRECTORY_PERMISSIONS=false

but to no avail. Anybody can help me please ?