From 90387daeda0d16f5295a407f3c6fdb14cdb12d22 Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Tue, 21 Jun 2022 20:01:57 +0200 Subject: [PATCH] Add Supervisord custom process number --- Dockerfile | 1 + entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 104e4f2..4f7f7d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM php:7.2-fpm ENV WORKDIR=/var/www ENV STORAGE_DIR=/var/www/storage +ENV LARAVEL_PROCS_NUMBER=2 # Install system dependencies RUN apt-get update && apt-get install -y \ git \ diff --git a/entrypoint.sh b/entrypoint.sh index 4b3e8e0..6bed832 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -53,7 +53,7 @@ if [ -f $WORKDIR/artisan ]; then command=php $WORKDIR/artisan queue:work --sleep=3 --tries=3 autostart=true autorestart=true - numprocs=2 + numprocs=$LARAVEL_PROCS_NUMBER user=root redirect_stderr=true stdout_logfile=/var/log/laravel_worker.log