This commit is contained in:
franknstayn
2023-08-28 03:11:28 +08:00
parent 45c8c94934
commit 1c9ddf5cb5
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ RUN composer install
RUN php artisan key:generate
# Expose port 9000 for PHP-FPM
EXPOSE 9000
EXPOSE 9001
# Start PHP-FPM
CMD ["php-fpm"]

View File

@@ -11,7 +11,7 @@ server {
}
location ~ \.php$ {
fastcgi_pass php-fpm:9000; # Use the service name
fastcgi_pass php-fpm:9001; # Use the service name
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;