From 2ce2cb337d9b349adc5acd531dc4e4e366142c66 Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Tue, 5 Jul 2022 05:40:09 +0200 Subject: [PATCH] Add custom supervisor conf --- Dockerfile | 4 ++-- README.md | 4 ++++ entrypoint.sh | 23 +++++++++++------------ 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index e2b57f5..56df34b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM php:7.2-fpm ENV WORKDIR=/var/www/html -ENV STORAGE_DIR=/var/www/html/storage -ENV LARAVEL_PROCS_NUMBER=2 +ENV STORAGE_DIR=${WORKDIR}/storage +ENV LARAVEL_PROCS_NUMBER=1 # Install system dependencies RUN apt-get update && apt-get install -y \ git \ diff --git a/README.md b/README.md index 6e105d1..a489f8b 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,10 @@ volumes: docker-compose up -d ``` +## Supervisord +### Add more supervisor process in +> /var/www/html/conf/worker/supervisor.conf + > P.S. please give a star if you like it :wink: diff --git a/entrypoint.sh b/entrypoint.sh index 3abd28b..703b13f 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,13 +10,9 @@ echo "***********************************************************" set -e ## Create PHP-FPM worker process -TASK=/etc/supervisor/conf.d/worker.conf +TASK=/etc/supervisor/conf.d/php-fpm.conf touch $TASK cat > "$TASK" < "$TASK" <