Skip to content

Is it possible to assign a volume name using an environment variable? #449

@andres-root

Description

@andres-root

I'm trying to create a volume using an environment variable I previously set up in my Dockerfile. However when I ran the project, fig created a folder with the name of my environment variable, instead of assign its value. I put the code below:

web:
build: .
volumes:
- ${WORKSPACES_HOME}/logs:/webapp/myapp/logs/

I used to do it in docker with the next sintax:
docker run -v ${WORKSPACES_HOME}/logs:/webapp/myapp/logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions