Docker-compose: hostrecord

Update: I ended up going with the more normal route of "extra_hosts:" which worked fine.

I would like to create a static dns entry in pihole. It looks like this is possible via the following:
pihole -a hostrecord home.mydomain.de 192.168.1.10

I have my instance configured through docker compose, but I'm unable to figure out the correct syntax. I was hoping it would be:
pihole:
...
command:
-a hostrecord home.mydomain.de 192.168.1.10

Unfortunately this was unsuccessful. Any hints would be welcome. Thanks!