Use portCount from manifest with 1 as default
This commit is contained in:
@@ -288,11 +288,8 @@ async function createSubcontainer(app, name, cmd, options) {
|
||||
const hostPort = app.portBindings[portName];
|
||||
const portType = (manifest.tcpPorts && portName in manifest.tcpPorts) ? 'tcp' : 'udp';
|
||||
const ports = portType == 'tcp' ? manifest.tcpPorts : manifest.udpPorts;
|
||||
|
||||
let portCount = 1;
|
||||
if (portName === 'sfuTcp' || portName === 'sfuUdp') portCount = 100;
|
||||
|
||||
const containerPort = ports[portName].containerPort || hostPort;
|
||||
const portCount = ports[portName].portCount || 1;
|
||||
const hostIps = hostPort === 53 ? getAddressesForPort53() : [ '0.0.0.0', '::0' ]; // port 53 is special because it is possibly taken by systemd-resolved
|
||||
|
||||
portEnv.push(`${portName}=${hostPort}`);
|
||||
@@ -304,10 +301,6 @@ async function createSubcontainer(app, name, cmd, options) {
|
||||
}
|
||||
}
|
||||
|
||||
console.log('=== env', portEnv)
|
||||
console.log('=== bindings', dockerPortBindings)
|
||||
console.log('=== exposedPorts', exposedPorts)
|
||||
|
||||
const appEnv = [];
|
||||
Object.keys(app.env).forEach(function (name) { appEnv.push(`${name}=${app.env[name]}`); });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user