-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
docker-compose with multiple files and automatic path extension #10043
Comments
There would have to be a way to insert the file location into the docker-compose config. Doesn't anybody else think that this would be a useful feature? It would mean you could more flexibly plug in software modules. |
The way |
My suggestion is to introduce a flag, e.g. |
The risk with a flag is that some users would rely on it on a daily basis but might forget to set the flag, still we can't make this the default behavior. An explicit syntax in the compose file would avoid this issue. |
If it is possible to have an environment variable named, e.g.,
then Alternatively, the |
closing this issue, please see compose-spec/compose-go#335 |
Description
This is my folder structure:
docker-compose.yml:
folder1/docker-compose.yml:
At the moment, executing
docker-compose -f docker-compose.yml -f folder1/docker-compose.yml config
from theproject-root
gives me:It would be nice to have an option to combine the two docker files that automically adapts the volume source location according to the host's folder structure, like this:
Note the changed volume source location in service2.
The text was updated successfully, but these errors were encountered: