exaco / laravel-octane-dockerfile

Production-ready Dockerfile for Laravel Octane (FrankenPHP, Swoole, RoadRunner) powered web services and microservices. Done right.
MIT License
590 stars 89 forks source link

Start HTTP server on port 8000 #73

Closed UNILORN closed 5 months ago

UNILORN commented 5 months ago

71 could not start the server on port 80 if you are not a privileged user due to the following error

In the case of Docker Container, there is little need for the server port to be port 80, so we have changed it to port 8000.

2024-04-30 01:25:38,428 INFO success: octane_00 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)                                                                                                                                                        

   INFO  Server running…                                                                                                                                                                                                                                                             

  Local: http://0.0.0.0:80                                                                                                                                                                                                                                                           

  Press Ctrl+C to stop the server                                                                                                                                                                                                                                                    

PHP Fatal error:  Uncaught Swoole\Exception: failed to listen server port[0.0.0.0:80], Error: Permission denied[13] in /var/www/html/vendor/laravel/octane/bin/createSwooleServer.php:10                                                                                             
Stack trace:                                                                                                                                                                                                                                                                         
#0 /var/www/html/vendor/laravel/octane/bin/createSwooleServer.php(10): Swoole\Server->__construct()                                                                                                                                                                                  
#1 /var/www/html/vendor/laravel/octane/bin/swoole-server(35): require('...')                                                                                                                                                                                                         
#2 {main}                                                                                                                                                                                                                                                                            
  thrown in /var/www/html/vendor/laravel/octane/bin/createSwooleServer.php on line 10                                                                                                                                                                                                
Fatal error: Uncaught Swoole\Exception: failed to listen server port[0.0.0.0:80], Error: Permission denied[13] in /var/www/html/vendor/laravel/octane/bin/createSwooleServer.php:10
smortexa commented 5 months ago

Thanks!