Merge pull request #809 from Tiagofv/main
Fix bug: value.environment is not iterable
This commit is contained in:
		@@ -43,7 +43,8 @@ export default async function (data) {
 | 
			
		||||
	let networks = {};
 | 
			
		||||
	for (let [key, value] of Object.entries(dockerComposeYaml.services)) {
 | 
			
		||||
		value['container_name'] = `${applicationId}-${key}`;
 | 
			
		||||
		value['environment'] = [...value['environment'], ...envs];
 | 
			
		||||
		let environment = typeof value['environment'] === 'undefined' ? []  : value['environment']
 | 
			
		||||
		value['environment'] = [...environment, ...envs];
 | 
			
		||||
		value['labels'] = labels;
 | 
			
		||||
		// TODO: If we support separated volume for each service, we need to add it here
 | 
			
		||||
		if (value['volumes']?.length > 0) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user