Variables in compose files


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
- {{container_name}}:/some/directory

Is this possible? What variables would be available?