Specify config.php properties on start-up?

I was able to get my nextcloud instance up and running…but it seems I had to add an entry in

  'trusted_domains' => 
  array (
	  0 => 'the.fqdn.com',
	  1 => 'local_name.local:8888',
  ),

as well as add

‘overwriteprotocol’ => ‘https’

to the config/config.php file.

But I am trying to figure out if there is a way to specify those properties as I am spinning up the nextcloud instance?

I create nextcloud with docker-compose using this file

  nextcloud_postgres:
      image: postgres:alpine
      restart: unless-stopped
      volumes:
          - nextcloud_postgres_db:/var/lib/postgresql/data
      environment:
          - POSTGRES_PASSWORD=/run/secrets/postgres_db_password
          - POSTGRES_DB=**********
          - POSTGRES_USER=**********
      container_name: **********
      networks:
          - nextcloud_network
  nextcloud_app:
      image: nextcloud
      restart: unless-stopped
      volumes:
          - nextcloud:/var/www/html
      environment:
          - POSTGRES_DB=**********
          - POSTGRES_USER=**********
          - POSTGRES_PASSWORD=/run/secrets/postgres_db_password
          - POSTGRES_HOST=**********
      depends_on:
          - nextcloud_postgres
      
      networks:
          - nextcloud_network
      container_name: nextcloud_app
      ports:
          - 8888:80

and it would be really swell if there was a way to have those properties added to the config.php file all with the
docker-compose -f docker-compose.yml up --build -d

Sure. See Auto configuration via environment variables