mirror of
https://github.com/azukaar/Cosmos-Server.git
synced 2026-01-05 20:05:02 -06:00
[release] v0.14.0-unstable18
This commit is contained in:
@@ -131,9 +131,11 @@ const convertDockerCompose = (config, serviceName, dockerCompose, setYmlError) =
|
||||
if (doc.services[key].ports && Array.isArray(doc.services[key].ports)) {
|
||||
let ports = [];
|
||||
doc.services[key].ports.forEach((port) => {
|
||||
port.target = '' + port.target;
|
||||
port.published = '' + port.published;
|
||||
ports.push(port);
|
||||
if (typeof port === 'string') {
|
||||
ports.push(port);
|
||||
return;
|
||||
}
|
||||
ports.push(`${port.published}:${port.target}/${port.protocol || 'tcp'}`);
|
||||
});
|
||||
doc.services[key].ports = ports;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cosmos-server",
|
||||
"version": "0.14.0-unstable17",
|
||||
"version": "0.14.0-unstable18",
|
||||
"description": "",
|
||||
"main": "test-server.js",
|
||||
"bugs": {
|
||||
|
||||
Reference in New Issue
Block a user