mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
internal_ports should be a string and not an array
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
53065b5631
commit
54f61eba68
8 changed files with 32 additions and 81 deletions
|
|
@ -5,7 +5,6 @@ namespace AIO;
|
|||
use AIO\Container\Container;
|
||||
use AIO\Container\ContainerEnvironmentVariables;
|
||||
use AIO\Container\ContainerPorts;
|
||||
use AIO\Container\ContainerInternalPorts;
|
||||
use AIO\Container\ContainerVolume;
|
||||
use AIO\Container\ContainerVolumes;
|
||||
use AIO\Container\State\RunningState;
|
||||
|
|
@ -87,14 +86,10 @@ class ContainerDefinitionFetcher
|
|||
$ports->AddPort($port);
|
||||
}
|
||||
|
||||
$internalPorts = new ContainerInternalPorts();
|
||||
foreach ($entry['internal_ports'] as $internalPort) {
|
||||
if($internalPort === '%APACHE_PORT%') {
|
||||
$internalPort = $this->configurationManager->GetApachePort();
|
||||
} elseif($internalPort === '%TALK_PORT%') {
|
||||
$internalPort = $this->configurationManager->GetTalkPort();
|
||||
}
|
||||
$internalPorts->AddInternalPort($internalPort);
|
||||
if($entry['internal_port'] === '%APACHE_PORT%') {
|
||||
$entry['internal_port'] = $this->configurationManager->GetApachePort();
|
||||
} elseif($entry['internal_port'] === '%TALK_PORT%') {
|
||||
$entry['internal_port'] = $this->configurationManager->GetTalkPort();
|
||||
}
|
||||
|
||||
$volumes = new ContainerVolumes();
|
||||
|
|
@ -183,7 +178,7 @@ class ContainerDefinitionFetcher
|
|||
$entry['restart'],
|
||||
$entry['stop_grace_period'],
|
||||
$ports,
|
||||
$internalPorts,
|
||||
$entry['internal_port'],
|
||||
$volumes,
|
||||
$variables,
|
||||
$dependsOn,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue