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

Support for compose files in a directory other than root path

Open snixon opened this issue 6 years ago • 3 comments

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!

snixon avatar Dec 05 '19 17:12 snixon

Hi @snixon

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

p1c2u avatar Jan 07 '20 09:01 p1c2u

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 avatar Sep 06 '21 12:09 ddnexus

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.

ddnexus avatar Sep 06 '21 12:09 ddnexus