-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Make it compatible with docker compose 2.x #2236
Make it compatible with docker compose 2.x #2236
Conversation
Hey @aminvakil, thanks for providing a PR :) We aim to maintain DMS for Docker Compose version 3. Therefore, I'm not sure whether we want to have compatibility fixes with Compose version 2. @casperklein @wernerfred your opinion on this? |
I'm not sure if I was clear enough or I'm misunderstanding :) I'm talking about https://github.com/docker/compose/releases/tag/v2.0.1 which has just been released. |
I had also issues with the latest docker-compose 2 version and some compose files, but no time yet to take a deeper look. If white spaces are an issue, we should quote them. |
Make it compatible with docker compose 2.x
Thanks, this is definitely a better approach, changed. |
The quotes must surround the whole string. Otherwise, the quotes are part of the variable value. Edit: https://docs.docker.com/compose/compose-file/compose-file-v3/#env_file
|
I didn't even know about this - feels like ages since I left Compose :D Nice! |
Co-authored-by: Casper <casperklein@users.noreply.github.com>
Damn. I've mistaken it. You need to surround the whole env string when set directly in |
@casperklein just provide a follow up PR:) |
That's weird. I will take a deeper look later. The documentation says, to quote the whole string, even in an env_file. In my test with docker-compose 1.29.2 however, the var is completely ignored, when fully quoted in an env_file. Two possibilities:
|
Description
docker compose 2.x complains with this error: "key cannot contain a space" or
when
POSTGREY_TEXT
value is something with spaces.Type of change
Checklist:
docs/
)