Skip to content

Ability to pass --env-file argument in docker-compose #273

Description

@earthslasthope

The issue I'm having is I can't see a way to pass a custom env-file in Visual Studio when debugging my docker-compose project. I can see there is a DockerfileRunEnvironmentFiles property that allows doing this for single projects (docker run) but there is nothing similar for docker-compose. Furthermore, I can't find a documented way to pass any custom options that come after docker-compose before the commands which would take care of this (e.g. docker-compose --env-file my_vars -f docker-compose-custom.yml up).

Are there any options to accomplish this? Can I customise how the docker-compose command gets built?

For your reference I was looking at the documentation here https://docs.microsoft.com/en-us/visualstudio/containers/docker-compose-properties?view=vs-2019

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions