5

Can you actually define the project name inside the compose configuration file itself, rather than as an environment variable or command-line flag? I suspect it may avoid some trouble in some scenarios.

I guess overriding that name might still be possible by env or flag.

1 Answer 1

5

Not yet (as of version 1.6.2), however, it is being discussed https://github.com/docker/compose/issues/745

1
  • Thanks. Frankly it is also a pain that there isn't a notion of default parameters in the docker-compose yml (or is there?). I.e. you either use an env var, or hard-code values. This is too stiff IMO, e.g. if one wishes to override a port on a certain deploy environment. Is there any programming language api to augment use of the yml definition?
    – matanster
    Mar 3, 2016 at 10:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.