Allowed to change swoole port in docker image by using the PORT env var

This commit is contained in:
Alejandro Celaya
2020-10-03 11:49:25 +02:00
parent b15e90408f
commit 00a96e6215
2 changed files with 4 additions and 3 deletions

View File

@@ -159,6 +159,7 @@ return [
'mezzio-swoole' => [
'swoole-http-server' => [
'port' => (int) env('PORT', 8080),
'options' => [
'worker_num' => (int) env('WEB_WORKER_NUM', 16),
'task_worker_num' => (int) env('TASK_WORKER_NUM', 16),