Docker image for a php-fpm container crafted to run Laravel based applications.
- PHP 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
) t
alias created to run unit testsvendor/bin/phpunit
withdocker-compose exec [service_name] t
d
alias created to run Laravel Dusk browser testsartisan dusk
withdocker-compose exec [service_name] d
art
alias created to run the Laravelartisan
commandfresh
alias created to migrate the database fresh and seed the seedersartisan migrate:fresh --seed
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.
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