FluentDocker
FluentDocker copied to clipboard
Docker compose with with an alternative "project name"
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>
Isn't this solved by the below setup?
.FromFile(file) // file=docker-compose file path
.ServiceName("ProjectNameExample")