diff --git a/README.md b/README.md index a489f8b..2a395d8 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,8 @@ * Laravel Schedule * Laravel Envoy * Supervisord +* Node +* NPM ## Simple docker-compose usage: @@ -137,13 +139,10 @@ services: #Project root - ./:/var/www/html - ~/.ssh:/root/.ssh # If you use private CVS - - ./supervisord:/etc/supervisor/conf.d/ # Supervisor directory, if you want to add more supervisor process config file - ./php.ini:/usr/local/etc/php/conf.d/php.ini # Optional, your custom php init file - - storage-data:/var/www/html/storage/app #Optional, your custom storage data environment: - APP_ENV=development # Optional, or production - - WORKDIR=/var/www/html #Optional, If you want to use a custom directory - - LARAVEL_PROCS_NUMBER=3 # Optional, Laravel queue:work process number + #- LARAVEL_PROCS_NUMBER=1 # Optional, Laravel queue:work process number #Nginx server nginx-server: image: nginx:alpine @@ -166,7 +165,7 @@ volumes: ``` ## Supervisord -### Add more supervisor process in +### Add supervisor process file in > /var/www/html/conf/worker/supervisor.conf diff --git a/entrypoint.sh b/entrypoint.sh index 4414a97..4315990 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,7 +10,7 @@ set -e ## Check if the artisan file exists if [ -f /var/www/html/artisan ]; then - echo "${Green} artisan file found, creating laravel supervisor config" + echo "${Green} artisan file found, creating laravel supervisor config..." ##Create Laravel Scheduler process TASK=/etc/supervisor/conf.d/laravel-worker.conf touch $TASK @@ -52,8 +52,14 @@ if [ -f /var/www/html/conf/worker/supervisor.conf ]; then echo "${Green} If you want to add more supervisor configs, create config file in /var/www/html/conf/worker/supervisor.conf" echo "${Green} Start supervisor with default config..." fi - - +## Check if php.ini file exists +if [ -f /var/www/html/conf/php/php.ini ]; then + cp /var/www/html/conf/php/php.ini $PHP_INI_DIR/conf.d/ + echo "Custom php.ini file found and copied in $PHP_INI_DIR/conf.d/" +else + echo "Custom php.ini file not found" + echo "If you want to add a custom php.ini file, you add it in /var/www/html/conf/php/php.ini" +fi echo "" echo "**********************************"