diff --git a/Dockerfile b/Dockerfile index 7aebc4a..0f71155 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,9 +22,6 @@ COPY . . # Install Laravel dependencies RUN composer install --no-dev --optimize-autoloader -# Set permissions -RUN chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache - # Expose port EXPOSE 9000 diff --git a/docker-compose.yml b/docker-compose.yml index 3bd8d49..81cd115 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,6 +25,7 @@ services: context: . dockerfile: Dockerfile container_name: laravel + user: "1000:1000" depends_on: mysql: condition: service_healthy diff --git a/nginx.conf b/nginx.conf index e1fec47..e90272a 100644 --- a/nginx.conf +++ b/nginx.conf @@ -5,6 +5,9 @@ server { root /var/www/html/public; index index.php index.html; + fastcgi_buffers 16 16k; + fastcgi_buffer_size 32k; + location / { try_files $uri $uri/ /index.php?$query_string; }