/php-fpm

php-fpm alpine image with gd, zip git and supervisor also installed

Primary LanguageDockerfileMIT LicenseMIT

PHP FPM Image with supervisor daemon

This docker image is based on the alpine docker image.

The notable differences from the base image are:

  • Added extensions: bz2 exif gd pdo_mysql pcntl tidy xml zip
  • Installed git
  • Installed supervisor
  • Runs Crond
    • every minute runs laravel:
    cd /var/www/ && php artisan schedule:run >> /dev/null 2>&1
    
  • Runs supervisord that spawns:
    • php-fpm
    • runs laravel: php artisan queue:worker

How to use this image

This will run a laravel queue:worker. It is intended for Laravel already be installed to /var/www prior to running this docker image.

Please visit php:fpm-alpine on how to use this image.

NOTE

This image still creates the /var/www/html folder with the root as owner. Haven't figured out how to stop that. Too much trouble for what it's worth at this point. If anyone knows, let me know please :)