I believe you are hitting a similar issue as we did at Codefresh
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}}'