vscode-docker-compose icon indicating copy to clipboard operation
vscode-docker-compose copied to clipboard

Support for multiple compose files

Open sparrowek opened this issue 5 years ago • 5 comments

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.

sparrowek avatar Nov 15 '20 12:11 sparrowek

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

ddnexus avatar Sep 06 '21 05:09 ddnexus

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

p1c2u avatar Sep 06 '21 08:09 p1c2u

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.

ddnexus avatar Sep 06 '21 11:09 ddnexus

What happens when you put full name? 🤔

p1c2u avatar Sep 06 '21 12:09 p1c2u

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.

bb avatar Sep 08 '21 12:09 bb