updated
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user