fix: network in compose files

This commit is contained in:
Andras Bacsai
2023-02-17 14:45:13 +01:00
parent c89a959fe8
commit 63ec2a33ae
2 changed files with 11 additions and 8 deletions

View File

@@ -104,8 +104,11 @@ export default async function (data) {
name: network
};
});
}
value['networks'] = [...(value['networks'] || ''), network];
} else {
value['networks'] = [network];
}
dockerComposeYaml.services[key] = {
...dockerComposeYaml.services[key],
restart: defaultComposeConfiguration(network).restart,

View File

@@ -111,7 +111,7 @@
<div class="title font-bold pb-3">Application Logs</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}
<button
on:click={() => selectService(service, true)}