Configuring Filebeat from a docker-compose.yml

I've noticed that there seems to be some Convention that maps nested config to environment variables along this pattern...

setting foo.bar.batz maps to env var FOO_BAR_BATZ.

How far does this extend and what percentage of a filebeat.yml file can we set just with environment variables.