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
Volumes override doesn't work #5203
Comments
It's a bug with our merging method. Thank you for reporting it. In the meantime, you can use the expanded volume notation with the 3.2 format which shouldn't be affected by this issue: https://docs.docker.com/compose/compose-file/#long-syntax-3 |
I can't tell if I hit this bug but as a workaround (unintentionally) I mapped the volume to a different target file and started the container, then I stopped it, revert the volume mapping to the original one and the problem was fixed. |
My overriding I would have expected that the overriding mount would trump the read-only mount even though it is wider than the |
I have both docker-compose.yml and its override file. The essential part of the content is:
docker-compose.yml:
docker-compose.override.yml:
For some reason the override for
../app
doesn't work - it is mounted in ro mode. But if comment out the second line (- "./environments/local/data/composer:/home/developer/.composer:rw"
) all of a sudden it starts seeing the override and works correctly. I don't see any logic in this behavior. Any ideas?The text was updated successfully, but these errors were encountered: