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
Request for allowing separate definition of image tag
under services
#11743
Comments
The common approach to this issue is to define tag by a variable, maybe using a default value or with services:
my-image-a:
image: my-image-a:${TAG:-dev} |
Thanks for your response! |
that's the compose way ¯_(ツ)_/¯ |
Not a helpful response ^^ Assume you have 20 images sharing the same tag. And you have .env file locally with 20 lines of configured env variables. This .env you cannot push because it is developer specific. |
that's why compose file variables support default value syntax |
Yes I meant with Interpolation considered. You have If |
Maybe even like this (did not test it but should work): |
Description
It would immensely helpful if I can define the tag of an image separately.
This allows the use of YAML anchors and aliases in the compose.yml. Especially if the docker compose gets big and many images have the same tag name (special release).
For example:
The following is currently not possible:
But it would be possible if:
Many Thanks!
The text was updated successfully, but these errors were encountered: