php-fpm-laravel
php-fpm-laravel copied to clipboard
Docker image for a php-fpm container crafted to run Laravel based applications.
PHP-FPM Docker image for Laravel
Docker image for a php-fpm container crafted to run Laravel based applications.
Specifications:
- PHP 8.1 / 8.0 / 7.4 / 7.3 / 7.2 / 7.1 / 7.0 / 5.6 / 5.4
- OpenSSL PHP Extension
- PDO PHP Extension
- SOAP PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
- PCNTL PHP Extension
- ZIP PHP Extension
- MCRYPT PHP Extension
- GD PHP Extension
- BCMath PHP Extension
- Imagick PHP Extension
- Memcached
- Composer
- Laravel Cron Job for the task scheduling setup
- PHP ini values for Laravel (see
laravel.ini) - xDebug (PHPStorm friendly, see
xdebug.ini) talias created to run unit testsvendor/bin/phpunitwithdocker-compose exec [service_name] tdalias created to run Laravel Dusk browser testsartisan duskwithdocker-compose exec [service_name] dartalias created to run the Laravelartisancommandfreshalias created to migrate the database fresh and seed the seedersartisan migrate:fresh --seed
Tags available:
When calling the image you want to use within your docker-compose.yml file,
you can specify a tag for the image. Tags are used for various versions of a
given Docker image.
Note: the master branch is not used for generating images, used for documentation instead. Only tags/branches are.
docker-compose usage:
version: '2'
services:
php-fpm:
image: cyberduck/php-fpm-laravel(:<version-tag>)
volumes:
- ./:/var/www/
- ~/.ssh:/root/.ssh # can be useful for composer if you use private CVS
networks:
- my_net #if you're using networks between containers