Docker image based on PHP FPM ALPINE. Laravel Ready!
467
Docker image based on php:alpine and add composer.
docker run -d \
-v $(pwd):/var/www/html \
-p 9000:9000 \
ferri/php:7.1-fpm-alpine
Now you can reference from nginx location fastcgi_pass 127.0.0.1:9000;. Also make sure both nginx and php container use same volume path /var/www/html
When running with docker-compose, example with php service, then you can run composer like this
docker-compose exec php composer install
Content type
Image
Digest
Size
29.5 MB
Last updated
almost 9 years ago
docker pull ferri/php