p1c2u / vscode-docker-compose

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

Support for compose files in a directory other than root path #39

Open snixon opened 4 years ago

snixon commented 4 years ago

Hi There, I tried a few combinations with the docker-compose.files setting, but was unsuccessful.

In a project I have I keep a folder under the root path (compose-files) with multiple compose files in it. Would it be possible (and useful) to have a workspace level property that lets the user specify the directory to look in for compose files?

Thanks for your work on this extension!

p1c2u commented 4 years ago

Hi @snixon

You should be able to do it with files. Be sure to add base compose files too.

ddnexus commented 3 years ago

The files in this project are in the docker dir... so I updated the path and this is what happens:

Docker Compose Error: Command failed: docker-compose -f docker-compose.yml -f ./docker/docker-compose.yml ps
.FileNotFoundError: [Errno 2] No such file or directory: './docker-compose.yml'

So it searches for a docker-compose.yml file even if I don't have it in the docker-compose.files.

ddnexus commented 3 years ago

FYI: another problem using the default that works: if I use up in the panel, it seems not to work, but it's just missing to refresh the screen. It does refresh on down, but it does not on up.