diff --git a/Dockerfile b/Dockerfile index 9e979fcf..14b52bf5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,8 @@ FROM php:8.2-fpm-alpine RUN apk add --no-cache nginx nodejs npm supervisor \ && docker-php-ext-install pdo pdo_mysql mysqli bcmath pcntl +COPY docker/php.ini /usr/local/etc/php/conf.d/uploads.ini + WORKDIR /app COPY . . @@ -17,8 +19,6 @@ RUN mkdir -p storage/framework/{sessions,views,cache} \ RUN php artisan storage:link -COPY docker/php.ini /usr/local/etc/php/conf.d/uploads.ini - COPY nginx.conf /etc/nginx/nginx.conf COPY supervisord.conf /etc/supervisord.conf diff --git a/supervisord.conf b/supervisord.conf index ee8c9ebf..df118614 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -7,11 +7,11 @@ autostart=true autorestart=true [program:laravel] -command=php /app/artisan serve --host=127.0.0.1 --port=8081 +command=php -d upload_max_filesize=50M -d post_max_size=55M -d memory_limit=256M /app/artisan serve --host=127.0.0.1 --port=8081 autostart=true autorestart=true [program:reverb] -command=php /app/artisan reverb:start --host=0.0.0.0 --port=8085 +command=php -d upload_max_filesize=50M -d post_max_size=55M -d memory_limit=256M /app/artisan reverb:start --host=0.0.0.0 --port=8085 autostart=true autorestart=true