fix: network in compose files
This commit is contained in:
@@ -66,12 +66,12 @@ export default async function (data) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (build.length > 0 || buildArgs.length > 0 ) {
|
if (build.length > 0 || buildArgs.length > 0) {
|
||||||
value['build'] = {
|
value['build'] = {
|
||||||
...build,
|
...build,
|
||||||
args: finalArgs
|
args: finalArgs
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
value['labels'] = labels;
|
value['labels'] = labels;
|
||||||
// TODO: If we support separated volume for each service, we need to add it here
|
// TODO: If we support separated volume for each service, we need to add it here
|
||||||
@@ -104,8 +104,11 @@ export default async function (data) {
|
|||||||
name: network
|
name: network
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
value['networks'] = [...(value['networks'] || ''), network];
|
||||||
|
} else {
|
||||||
|
value['networks'] = [network];
|
||||||
}
|
}
|
||||||
value['networks'] = [...(value['networks'] || ''), network];
|
|
||||||
dockerComposeYaml.services[key] = {
|
dockerComposeYaml.services[key] = {
|
||||||
...dockerComposeYaml.services[key],
|
...dockerComposeYaml.services[key],
|
||||||
restart: defaultComposeConfiguration(network).restart,
|
restart: defaultComposeConfiguration(network).restart,
|
||||||
|
@@ -111,7 +111,7 @@
|
|||||||
<div class="title font-bold pb-3">Application Logs</div>
|
<div class="title font-bold pb-3">Application Logs</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex gap-2 lg:gap-8 pb-4">
|
<div class="grid grid-cols-3 gap-2 lg:gap-8 pb-4">
|
||||||
{#each services as service}
|
{#each services as service}
|
||||||
<button
|
<button
|
||||||
on:click={() => selectService(service, true)}
|
on:click={() => selectService(service, true)}
|
||||||
|
Reference in New Issue
Block a user