fix: empty port in docker compose

This commit is contained in:
Andras Bacsai 2023-03-02 17:22:49 +01:00
parent c0940f7a19
commit 7f7eb12ded

View File

@ -95,7 +95,7 @@ export default async function (data) {
value['volumes'].push(volume); value['volumes'].push(volume);
} }
} }
if (dockerComposeConfiguration[key].port) { if (dockerComposeConfiguration[key]?.port) {
value['expose'] = [dockerComposeConfiguration[key].port]; value['expose'] = [dockerComposeConfiguration[key].port];
} }
if (value['networks']?.length > 0) { if (value['networks']?.length > 0) {