Export users 500k+ lines, seed, supervisord setup

This commit is contained in:
Ilya Rogozhin
2026-06-09 18:52:21 +02:00
parent 299ab41b7d
commit 792e4d7f28
15 changed files with 469 additions and 223 deletions
+9 -1
View File
@@ -22,6 +22,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libzip-dev \
unzip \
git \
supervisor \
&& rm -rf /var/lib/apt/lists/*
# Configure and install PHP extensions
@@ -55,7 +56,14 @@ USER www-data
# 6. Download and unpack the Laravel installer directly into www-data's profile folder
RUN composer global require laravel/installer --no-interaction
# 7. Switch back to root user
USER root
# Supervisor
RUN mkdir -p /var/log/supervisor
COPY ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Expose PHP-FPM default communication port
EXPOSE 9000
CMD ["php-fpm"]
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
+2 -1
View File
@@ -4,5 +4,6 @@ opcache.memory_consumption=256
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=20000
opcache.revalidate_freq=0
opcache.validate_timestamps=0
opcache.validate_timestamps=1
opcachee.revalidate_freq=0
opcache.fast_shutdown=1
+24
View File
@@ -0,0 +1,24 @@
[supervisord]
nodaemon=true
user=root
[program:php-fpm]
command=php-fpm
autostart=true
autorestart=true
priority=5
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/test-fhr/artisan queue:work --sleep=3 --tries=3
autostart=true
autorestart=true
user=www-data
numprocs=4
redirect_stderr=true
stdout_logfile=/var/www/test-fhr/storage/logs/worker.log
stopwaitsecs=3600