This commit is contained in:
Bozhidar 2024-04-27 01:55:13 +03:00
parent 186b014134
commit d5a5e6ae00
3 changed files with 7 additions and 1 deletions

View file

@ -59,7 +59,7 @@ class DockerContainerApi
{
$commandId = rand(10000, 99999);
$shellFileContent = 'docker run --name ' . $this->name . ' ';
$shellFileContent = 'docker run -it --network=host --name ' . $this->name . ' ';
if (!empty($this->port)) {
$shellFileContent .= ' -p ' . $this->externalPort . ':' . $this->port . ' ';

View file

@ -65,6 +65,9 @@ class DockerContainerResource extends Resource
$defaultPort = $port;
}
}
if ($defaultPort == 80) {
$defaultPort = 83;
}
return $form
->schema([

View file

@ -39,6 +39,9 @@
@if (!empty($proxyPass))
ProxyPreserveHost On
ProxyRequests Off
ProxyVia On
ProxyPass / {{$proxyPass}}
ProxyPassReverse / {{$proxyPass}}