Skip to content

Commit

Permalink
added mapping of IPv6 port
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
  • Loading branch information
oleksandr-nc committed Jan 7, 2025
1 parent 74cb1ed commit 8b22a61
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/DeployActions/DockerActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,12 @@ public function createContainer(string $dockerUrl, string $imageId, DaemonConfig
];
$containerParams['HostConfig']['PortBindings'] = [
sprintf('%d/tcp', $exAppMainPort) => [
['HostPort' => (string)$exAppMainPort, 'HostIp' => '127.0.0.1']
['HostPort' => (string)$exAppMainPort, 'HostIp' => '127.0.0.1'],
['HostPort' => (string)$exAppMainPort, 'HostIp' => '::1'],
],
sprintf('%d/udp', $exAppMainPort) => [
['HostPort' => (string)$exAppMainPort, 'HostIp' => '127.0.0.1']
['HostPort' => (string)$exAppMainPort, 'HostIp' => '127.0.0.1'],
['HostPort' => (string)$exAppMainPort, 'HostIp' => '::1'],
],
];
}
Expand Down

0 comments on commit 8b22a61

Please sign in to comment.