mariotoffia / FluentDocker

Use docker, docker-compose local and remote in tests and your .NET core/full framework apps via a FluentAPI
Apache License 2.0
1.31k stars 97 forks source link

Docker compose with with an alternative "project name" #277

Open wyepez opened 1 year ago

wyepez commented 1 year ago

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: _

magnusjtvisma commented 1 year ago

Isn't this solved by the below setup?

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