Docker image to run PHP applications based on the official PHP Docker images, but with some added flavors.
https://hub.docker.com/r/jrobinsonc/php
Why this image? Well, the difference between the original and this one is that in this image you'll find all the stuff you usually need to run PHP applications, tools like Composer and extensions like Imagick, etc.; saving you from the need of creating Dockerfiles for every new project to add all that stuff.
If you are looking for something more specific, below you can see other images designed for specific environments:
- Composer
Image Variants
- PHP 7.2 with Apache →
jrobinsonc/php:7.2-apache
- PHP 7.3 with Apache →
jrobinsonc/php:7.3-apache
- PHP 7.4 with Apache →
jrobinsonc/php:7.4-apache
- PHP 8.0 with Apache →
jrobinsonc/php:8.0-apache
- PHP 8.0 FPM →
jrobinsonc/php:8.0-fpm
Start the container:
docker run \
-p 80:80 \
-v $(pwd):/var/www/html \
jrobinsonc/php:7.3-apache