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

Allow x-project-name property in Compose file to define project name #5378

Closed
wants to merge 1 commit into from

Conversation

shin-
Copy link

@shin- shin- commented Nov 15, 2017

Fixes #745

Notes:

  • This is not meant as an official addition to the Compose file format. Other implementations may or may not offer similar functionality.
  • The order of precedence is as follows: --project-name CLI option > COMPOSE_PROJECT_NAME environment variable > x-project-name value (iff COMPOSE_X_PROJECT_NAME is enabled) > directory name

Signed-off-by: Joffrey F <joffrey@docker.com>
@thedeeno
Copy link

For my use case this is similar enough to using COMPOSE_PROJECT_NAME that I wouldn't get any value from these changes. Couple that with the magic _x_ prefixes and this just seems too complex to merge imo.

@shin- shin- added this to the 1.19.0 milestone Dec 5, 2017
@shin- shin- removed this from the 1.19.0 milestone Jan 8, 2018
@jpringle03
Copy link

I would love to see this get added to Docker Compose. Is there any update on this?

@shin-
Copy link
Author

shin- commented Mar 14, 2018

The feedback we received on this issue led us to believe this wasn't the right approach to tackling the problem. We're still thinking about ways to do this, but I think it's safe to say this isn't it (at least not in isolation)

@jpringle03
Copy link

Thanks for the quick response @shin-

I'd love to eventually see a way to define the project name within the compose file. Is there conversation happening anywhere else about how to address this?

@ijc
Copy link

ijc commented May 20, 2019

I guess this should have been closed with #5378 (comment), so I will.

@ijc ijc closed this May 20, 2019
@justincormack justincormack deleted the 745-compose-project-name branch September 10, 2021 08:43
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

Successfully merging this pull request may close these issues.

Proposal: make project-name persistent.
4 participants