docker compose updated

This commit is contained in:
m.marjorie 2025-03-26 15:01:52 +08:00
parent 5ed6e1d34b
commit 454083bd35
3 changed files with 4 additions and 3 deletions

View File

@ -22,9 +22,6 @@ COPY . .
# Install Laravel dependencies # Install Laravel dependencies
RUN composer install --no-dev --optimize-autoloader 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 port
EXPOSE 9000 EXPOSE 9000

View File

@ -25,6 +25,7 @@ services:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: laravel container_name: laravel
user: "1000:1000"
depends_on: depends_on:
mysql: mysql:
condition: service_healthy condition: service_healthy

View File

@ -5,6 +5,9 @@ server {
root /var/www/html/public; root /var/www/html/public;
index index.php index.html; index index.php index.html;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
location / { location / {
try_files $uri $uri/ /index.php?$query_string; try_files $uri $uri/ /index.php?$query_string;
} }