Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wyepez opened this issue Sep 18, 2022 · 1 comment
Open

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

wyepez opened this issue Sep 18, 2022 · 1 comment

Comments

@wyepez
Copy link

wyepez commented Sep 18, 2022

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>

@magnusjtvisma
Copy link

magnusjtvisma commented Sep 20, 2022

Isn't this solved by the below setup?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants