# Shared volumes in freestyle composition

**URL:** <https://community.codefresh.io/t/shared-volumes-in-freestyle-composition/156>\
**Category:** Pipeline Steps\
**Created:** [October 9, 2019, 7:21am UTC](https://community.codefresh.io/t/shared-volumes-in-freestyle-composition/156 "2019-10-09T07:21:30Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![evanx9](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/evanx9/32/156_2.png) [@evanx9](https://community.codefresh.io/u/evanx9)\
**Post date:** [October 16, 2019, 5:18pm UTC](https://community.codefresh.io/t/shared-volumes-in-freestyle-composition/156/6 "2019-10-16T17:18:33Z")

</div>

I believe you are hitting a similar issue as we did at [Codefresh](https://support.codefresh.io/hc/en-us/requests/1356)

This was the response from **Codefresh** :

> We have certain volume declarations in compositions that we support and some others that we don’t.
> 
> We DO NOT support absolute path mappings:
> 
> - /opt/data:/var/lib/mysql
> 
> But we do support relative paths:
> 
> - ./cache:/tmp/cache
> 
> Which are relative to the location of the compose file.

This is why the variable referenced used is `{{CF_VOLUME_NAME}}` in the form of: `${{CF_VOLUME_NAME}}:${{CF_VOLUME_PATH}}'`

---

_[View the full topic](https://community.codefresh.io/t/shared-volumes-in-freestyle-composition/156)._
