Adding nfs shares to stacks

I’ve worked out how to add NFS shares from my OMV NAS to Docker containers running on other devices. What I haven’t been able to figure out is can you add or mount these shares from a docker-compose stack script? If so an example would be appreciated.