You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that all relative volume paths are resolved to the location of the first given config file instead of the config file they are specified in. It would make sense to introduce a flag or an environment variable that changes this behavior.
That would make sense when project directory is inferred from first file in the list, but how would this behave when user declares an explicit project directory with docker compose -p /foo ?
I'd prefer we introduce support for an explicit path notation to be "relative to current compose file", in addition to the existing ./foo for project-directory relative paths, and ~/bar for user HOME relative paths. Any suggestion for a portable and human-friendly syntax is welcome :)
I wonder we could adopt __DIR__ variable used by PHP as "folder of the current file". I don't know another comparable example we could get inspiration for regarding syntax
The issue is that all relative volume paths are resolved to the location of the first given config file instead of the config file they are specified in. It would make sense to introduce a flag or an environment variable that changes this behavior.
See this issue in docker/compose
The text was updated successfully, but these errors were encountered: