FluentDocker icon indicating copy to clipboard operation
FluentDocker copied to clipboard

Docker compose with with an alternative "project name"

Open wyepez opened this issue 2 years ago • 1 comments

Hello,

I would like to use docker compose with an alternative project name, similar to the following command from the CLI docker compose --project-name ProjectNameExample up -d Is there a way to achieve this?

The reason I want this is because I want to reuse an existing volume which is named in this form: <project_name>_<volume_name>

wyepez avatar Sep 18 '22 11:09 wyepez

Isn't this solved by the below setup?

.FromFile(file) // file=docker-compose file path
.ServiceName("ProjectNameExample")

magnusjtvisma avatar Sep 20 '22 07:09 magnusjtvisma