forked from eatvio/eatvio-infra
feat(livekit): add service
This commit is contained in:
12
phpdocker/worker/Dockerfile
Executable file
12
phpdocker/worker/Dockerfile
Executable file
@@ -0,0 +1,12 @@
|
||||
FROM phpdockerio/php:8.4-fpm
|
||||
WORKDIR "/application"
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get -y --no-install-recommends install git \
|
||||
php8.4-gd php8.4-mysql php8.4-sqlite3 php8.4-pgsql ffmpeg jpegoptim \
|
||||
php8.4-intl \
|
||||
php8.4-memcached \
|
||||
imagemagick php8.4-imagick \
|
||||
python3-pkg-resources supervisor && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
|
||||
55
phpdocker/worker/laravel-worker.conf
Executable file
55
phpdocker/worker/laravel-worker.conf
Executable file
@@ -0,0 +1,55 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
|
||||
[program:laravel-worker]
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
command=php /application/artisan queue:work --sleep=3 --tries=3 --max-time=3600
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stopasgroup=true
|
||||
killasgroup=true
|
||||
user=www-data
|
||||
numprocs=2
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/application/storage/logs/worker.log
|
||||
stopwaitsecs=3600
|
||||
|
||||
[program:laravel-schedule]
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
command=php /application/artisan schedule:work
|
||||
directory=/application
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stopasgroup=true
|
||||
killasgroup=true
|
||||
user=www-data
|
||||
numprocs=1
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/application/storage/logs/schedule.log
|
||||
stopwaitsecs=3600
|
||||
|
||||
[program:laravel-feed-generation-worker]
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
command=php /application/artisan queue:work --queue=feed-generation --sleep=1 --tries=3 --timeout=1800 --max-time=3600
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stopasgroup=true
|
||||
killasgroup=true
|
||||
user=www-data
|
||||
numprocs=8
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/application/storage/logs/feed-generation-worker.log
|
||||
stopwaitsecs=3600
|
||||
|
||||
[program:laravel-scout-worker]
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
command=php /application/artisan queue:work --queue=scout --sleep=1 --tries=3 --timeout=300 --max-time=3600
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stopasgroup=true
|
||||
killasgroup=true
|
||||
user=www-data
|
||||
numprocs=8
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/application/storage/logs/scout-worker.log
|
||||
stopwaitsecs=3600
|
||||
2
phpdocker/worker/php-ini-overrides.ini
Executable file
2
phpdocker/worker/php-ini-overrides.ini
Executable file
@@ -0,0 +1,2 @@
|
||||
upload_max_filesize = 100M
|
||||
post_max_size = 108M
|
||||
Reference in New Issue
Block a user