# Variables in compose files

**URL:** <https://forums.suse.com/t/variables-in-compose-files/4558>\
**Category:** Rancher 1.x\
**Created:** [November 9, 2016, 2:28am UTC](https://forums.suse.com/t/variables-in-compose-files/4558 "2016-11-09T02:28:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Camron\_Levanger](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/camron_levanger/32/1591_2.png) [@Camron\_Levanger](https://forums.suse.com/u/Camron_Levanger)\
**Post date:** [November 9, 2016, 2:28am UTC](https://forums.suse.com/t/variables-in-compose-files/4558/1 "2016-11-09T02:28:53Z")

</div>

Hi,

I have a stack that spins up N number of the same container. These containers mount volumes from Convoy, but I need them to each use a different mount (they can not share a directory).

I’d like to do something like:

```
volume_driver: convoy-efs
volumes:
- {{container_name}}:/some/directory

```

Is this possible? What variables would be available?
