From 454083bd359c0cce5124f5465b34ed42e031a88c Mon Sep 17 00:00:00 2001 From: "m.marjorie" Date: Wed, 26 Mar 2025 15:01:52 +0800 Subject: [PATCH] docker compose updated --- Dockerfile | 3 --- docker-compose.yml | 1 + nginx.conf | 3 +++ 3 files changed, 4 insertions(+), 3 deletions(-) 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; }