Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Conversation

@vito-c
Copy link
Contributor

@vito-c vito-c commented Sep 8, 2017

title is pretty straight forward. This let's you add default values to your docker-compose file.

web:
# unbracketed name
image: ${IMAGE:-busybox}

parsers to

web:
# unbracketed name
image: busybox
web:
# unbracketed name
image: ${IMAGE-busybox}

parsers to

web:
# unbracketed name
image: busybox

@arkban
Copy link

arkban commented Sep 8, 2017

Does this support the ${VARIABLE-default} format (without the ":") as well? https://docs.docker.com/compose/compose-file/#variable-substitution

@vito-c
Copy link
Contributor Author

vito-c commented Sep 8, 2017

@patrick-bohan no but I could add support for that.

@vito-c
Copy link
Contributor Author

vito-c commented Sep 8, 2017

added support for - and some more testing.

@vito-c
Copy link
Contributor Author

vito-c commented Sep 11, 2017

@vdemeester What is the timeline like to get merges?

Copy link
Contributor

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐮

@vdemeester vdemeester merged commit 0fc04d3 into docker-archive-public:master Sep 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants