# How to correctly mount my file/system or application files using docker compose?

**URL:** <https://discuss.circleci.com/t/how-to-correctly-mount-my-file-system-or-application-files-using-docker-compose/25141>\
**Category:** Build Environment\
**Created:** [September 14, 2018, 11:38am UTC](https://discuss.circleci.com/t/how-to-correctly-mount-my-file-system-or-application-files-using-docker-compose/25141 "2018-09-14T11:38:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![halfer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/halfer/32/9083_2.png) [@halfer](https://discuss.circleci.com/u/halfer)\
**Post date:** [September 14, 2018, 11:59am UTC](https://discuss.circleci.com/t/how-to-correctly-mount-my-file-system-or-application-files-using-docker-compose/25141/2 "2018-09-14T11:59:43Z")

</div>

The problem is that, by virtue of the CircleCI architecture, you cannot use on-host volumes. They only work locally, but CircleCI hooks into Docker to spin up containers on remote boxes, and volumes don’t work over LAN connections.

There’s a solution involving `docker create` in the link you have given. Or, the way I do it, is to bake a new Docker image with everything it needs, and run that. That makes sense for me anyway, since I need the image artefact for deployment.

---

_[View the full topic](https://discuss.circleci.com/t/how-to-correctly-mount-my-file-system-or-application-files-using-docker-compose/25141)._
