Specify path in volumes on mount

Hi there!
Is it possible to create a volume inside docker-compose.yml pointing to a root folder of NFS share and append path in service definitions. Something like this;

version: "3"
services:
  mongo:
    image: {{ registry }}/mongo-alpine:latest
    volumes:
      - share/mongo!!<=DOESNT WORK HERE!!:/data/db

volumes:
  share:
    driver: local
    driver_opts:
      type: nfs
      o: addr={{ nfs_share }},vers=4,rw
      device: ":/"

Docker complains about “includes invalid characters for a local volume name” here. Is there a way to have an universal share and to point directories for services on it? Or having per service share is the only option for me?