iamdork / compose

Command line replacement for docker-compose, adding dork magics.
MIT License
2 stars 2 forks source link

Support multiple libraries and local overrides. #14

Closed pmelab closed 8 years ago

pmelab commented 8 years ago

It would be useful to aggregate multiple libraries (e.g. drupal + elk stack) within one project and rewire provided services in a local docker-compose.yml file. This behavior should not conflict with the $COMPOSE_FILE environment variable, but rather extend it.

pmelab commented 8 years ago

After some investigation it turned out that this feature won't work without creating an uncontrollable mess. docker-compose treats paths in all loaded configuration files relative to the first file loaded. Therefore combining multiple reusable docker-compose.yml files is not a viable option.

A separeate project (https://github.com/iamdork/images) has been started to host reusable docker images that have been part of the docker examples before. Images should be the "reusable" part, while docker-compose.yml files are supposed to be simple enough to just copy and paste them. Latest feature additions to dork-compose (the autobuild feature) were designed to ease this approach.