# Docker-compose mount with path

**URL:** <https://forums.docker.com/t/docker-compose-mount-with-path/102875>\
**Category:** Compose\
**Created:** [January 11, 2021, 2:33am UTC](https://forums.docker.com/t/docker-compose-mount-with-path/102875 "2021-01-11T02:33:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lsouthworth](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/lsouthworth/32/54431_2.png) [@lsouthworth](https://forums.docker.com/u/lsouthworth)\
**Post date:** [January 11, 2021, 2:33am UTC](https://forums.docker.com/t/docker-compose-mount-with-path/102875/1 "2021-01-11T02:33:54Z")

</div>

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,
