diff --git a/Dockerfile b/Dockerfile index 283b212..a9c5853 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,7 +41,7 @@ RUN composer install RUN php artisan key:generate # Expose port 9000 for PHP-FPM -EXPOSE 80 +EXPOSE 82 EXPOSE 9001 # Start PHP-FPM diff --git a/default.conf b/default.conf index aa01f47..ba7bd0d 100644 --- a/default.conf +++ b/default.conf @@ -1,5 +1,5 @@ server { - listen 80; + listen 82; server_name localhost; root /var/www/html; @@ -11,7 +11,7 @@ server { location ~ \.php { fastcgi_index index.php; - fastcgi_pass unix:/var/run/php/php5.6-fpm.sock; # Use the service name and exposed port + fastcgi_pass 127.0.0.1:9001; # Use the service name and exposed port include fastcgi_params; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_param PATH_INFO $fastcgi_path_info;