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" <