microsoft / vscode-docker

Docker Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker
Other
1.21k stars 515 forks source link

Can't set up compose file name #4090

Closed acyment closed 1 year ago

acyment commented 1 year ago

Hi there! I use Django cookiecutter, which creates a dev compose file named local.yml. If I right-click on it I do not see the command "Compose up". I tried setting COMPOSE_PROJECT_NAME=local.yml in an .env file in the root folder of the project to no avail. Please add the possibility to configure the extension so that a custom Compose project file name can be used.

Thanks!

bwateratmsft commented 1 year ago

This can be accomplished using the files.associations setting.

    "files.associations": {
        "local.yml": "dockercompose"
    }