mirror of
https://github.com/jkaninda/laravel-php-fpm.git
synced 2025-12-07 01:19:38 +01:00
Add Supervisord custom process number
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
FROM php:7.2-fpm
|
FROM php:7.2-fpm
|
||||||
ENV WORKDIR=/var/www
|
ENV WORKDIR=/var/www
|
||||||
ENV STORAGE_DIR=/var/www/storage
|
ENV STORAGE_DIR=/var/www/storage
|
||||||
|
ENV LARAVEL_PROCS_NUMBER=2
|
||||||
# Install system dependencies
|
# Install system dependencies
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
git \
|
git \
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ if [ -f $WORKDIR/artisan ]; then
|
|||||||
command=php $WORKDIR/artisan queue:work --sleep=3 --tries=3
|
command=php $WORKDIR/artisan queue:work --sleep=3 --tries=3
|
||||||
autostart=true
|
autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
numprocs=2
|
numprocs=$LARAVEL_PROCS_NUMBER
|
||||||
user=root
|
user=root
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
stdout_logfile=/var/log/laravel_worker.log
|
stdout_logfile=/var/log/laravel_worker.log
|
||||||
|
|||||||
Reference in New Issue
Block a user