Docker-compose mount with path

Hi Guys,

I’m moving various data to volume mounts using nfs. One of my goal is to have one NFS mount for many applications using the same volume called appdata.

 version: "3"
 ...
    volumes:
       - appdata/application:/config
 ...
 volumes:
   appdata:
     external: true

However this doesn’t seam possible as I get error:

ERROR: Named volume “appdata/application:/config:rw” is used in service “application” but no declaration was found in the volumes section.

Is there a way to do this with mounts using “appdata/application:/config”?

Thanks,