francescou/docker-compose-ui

Different project names

Closed this issue · 2 comments

When using docker-compose-ui on existing docker-compose.yml it should be able to detect projects started with different "project name", (docker-compose flag --project-name, -p), be able to list them and maybe switch between them, or at least give the used the option to specify the project name somehow on startup.

I think this is not straightforward since AFAIK there's no docker-compose command to list the "project names", but It may be a nice feature for docker-compose-ui anyway.

Hello @andresvia
the only solution I could think of is to list all docker container (sort of docker ps) and then inspect each one docker inspect ID --format '{{index .Config.Labels "com.docker.compose.project"}}'

The problem of this approach is that there is no way to know what is the corresponding docker-compose.yml file for a given project name (this should be managed by docker-compose-ui).

so while it could be technically possible, it could limit the interoperability with docker-compose CLI.

could you please explain me in detail what is your current use case to need this feature?

I'm closing this issue due to lack of activity, feel free to reopen if necessary.