mirror of
https://github.com/docker/compose.git
synced 2026-09-01 07:11:06 +00:00
Support multiple files in COMPOSE_FILE env var.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
f75408923e
commit
53a3d14046
3 changed files with 46 additions and 8 deletions
|
|
@ -58,8 +58,10 @@ def get_config_path_from_options(options):
|
|||
if file_option:
|
||||
return file_option
|
||||
|
||||
config_file = os.environ.get('COMPOSE_FILE')
|
||||
return [config_file] if config_file else None
|
||||
config_files = os.environ.get('COMPOSE_FILE')
|
||||
if config_files:
|
||||
return config_files.split(os.pathsep)
|
||||
return None
|
||||
|
||||
|
||||
def get_client(verbose=False, version=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue