# Can I set up a container volume from the EBS volume on the host EC2 instance?

**URL:** <https://community.convox.com/t/can-i-set-up-a-container-volume-from-the-ebs-volume-on-the-host-ec2-instance/743>\
**Category:** Rack (Version 2)\
**Created:** [May 17, 2020, 7:12am UTC](https://community.convox.com/t/can-i-set-up-a-container-volume-from-the-ebs-volume-on-the-host-ec2-instance/743 "2020-05-17T07:12:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nathan.f77](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/nathan.f77/32/256_2.png) [@nathan.f77](https://community.convox.com/u/nathan.f77)\
**Post date:** [May 17, 2020, 7:33am UTC](https://community.convox.com/t/can-i-set-up-a-container-volume-from-the-ebs-volume-on-the-host-ec2-instance/743/2 "2020-05-17T07:33:47Z")

</div>

I just read through the [“AWS EFS — The Container Friendly File System” blog post](https://convox.com/blog/efs), and that explained a lot! I actually didn’t realize that Convox was already mounting an EFS volume at `/volumes`, so I already have a directory that is shared between all of the instances.

So if I use this format:

```auto
  volumes:
    - /var/lib/postgresql/data

```

Then Docker will create a new volume inside `/volumes` by default.

So if I specify an explicit path outside of the `/volumes` directory, then I guess this means I’m using EBS instead of EFS. E.g. something like:

```auto
  volumes:
    - /tmp/filecache:/tmp/filecache

```

UPDATE: Ahhhh, this doesn’t work. This creates a volume inside: `/volumes/<myapp>/tmp/filecache`

So it looks like I don’t have the option to mount a volume outside the `/volumes` directory.

---

_[View the full topic](https://community.convox.com/t/can-i-set-up-a-container-volume-from-the-ebs-volume-on-the-host-ec2-instance/743)._
