p1c2u / vscode-docker-compose

Docker Compose Extension for Visual Studio Code
MIT License
18 stars 8 forks source link

Support for multiple compose files #44

Open sparrowek opened 3 years ago

sparrowek commented 3 years ago

I am using multiple compose files like this - https://docs.docker.com/compose/extends/#multiple-compose-files and also by specifying several compose files in the .env like here - https://medium.com/@pscheit/docker-compose-advanced-configuration-541356d121de Unfortunately the plugin does not support this.

ddnexus commented 3 years ago

Without this basic feature it's quite useless for any serious usage 😕

p1c2u commented 3 years ago

Hi, you can use docker-compose.files setting?

ddnexus commented 3 years ago

you can use docker-compose.files setting?

No I cannot because docker-compose.files uses only the filename, not the full path. Unless you have a small project or a big one very messy, you will keep the docker-compose files in some dir.

p1c2u commented 3 years ago

What happens when you put full name? 🤔

bb commented 3 years ago

It would also be good to support the override files (docker-compose.override.yml etc), the COMPOSE_FILE environment variable (which can take multiple files separated by colon) and automatically reading e.g. the COMPOSE_FILE and COMPOSE_PROFILES from the .env file.