Symptoms
You are attempting to access the shared volume from a composition or service, but you are not able to.
Cause
You have not mounted the volume, or you have used incorrect syntax.
Solution
Mount the volume as part of your composition.
services:
composition:
mongodb:
image: 'mongo:4.2'
ports:
- '27017:27017'
volumes:
- '${{CF_VOLUME_NAME}}:${{CF_VOLUME_PATH}}'
Notes
CF_VOLUME_PATH
refers to /codefresh/volume. You may use that, or any other directory, you wish.
Read More
Codefresh Docs: Accessing your project folder from a composition