mirror of https://github.com/docker/compose.git
Interpolate configs values
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
bf3b62e2ff
commit
e7b7480462
|
@ -507,12 +507,20 @@ def process_config_file(config_file, environment, service_name=None):
|
||||||
config_file.get_networks(),
|
config_file.get_networks(),
|
||||||
'network',
|
'network',
|
||||||
environment)
|
environment)
|
||||||
if config_file.version in (const.COMPOSEFILE_V3_1, const.COMPOSEFILE_V3_2):
|
if config_file.version in (const.COMPOSEFILE_V3_1, const.COMPOSEFILE_V3_2,
|
||||||
|
const.COMPOSEFILE_V3_3):
|
||||||
processed_config['secrets'] = interpolate_config_section(
|
processed_config['secrets'] = interpolate_config_section(
|
||||||
config_file,
|
config_file,
|
||||||
config_file.get_secrets(),
|
config_file.get_secrets(),
|
||||||
'secrets',
|
'secrets',
|
||||||
environment)
|
environment)
|
||||||
|
if config_file.version in (const.COMPOSEFILE_V3_3):
|
||||||
|
processed_config['configs'] = interpolate_config_section(
|
||||||
|
config_file,
|
||||||
|
config_file.get_configs(),
|
||||||
|
'configs',
|
||||||
|
environment
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
processed_config = services
|
processed_config = services
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue