Using the command command
it is possible to specify the container options.
So the following worked in my docker compose yml file:
volumes:
node-red-data:
services:
samba:
image: dastrasmue/rpi-samba
command: -s "Public (readonly):/mount:ro:"
volumes:
- 'node-red-data:/mount'
ports:
- "139:139"
- "445:445"
...