Customized Docker images crafted with care for various PHP tasks. Containing PHP, Nginx and OpenLiteSpeed.
- Latest PHP 7.1 and upcoming PHP 7.2
- Composer installation script
- Nginx
- OpenLiteSpeed
- PHP Extensions installation script
- runit for running multiple services without overhead.
- Debian Jessie slim or Alpine base image
- Optimized Docker image sizes
latest
(Dockerfile) - PHP CLI, Alpinelitespeed
(Dockerfile) - OpenLiteSpeed, PHP LiteSpeed SAPI, Alpinelitespeed-slim
(Dockerfile) - OpenLiteSpeed, PHP LiteSpeed SAPI, Debian Jessie Slimnginx
(Dockerfile) - Nginx, PHP FPM, Alpinenginx-slim
(Dockerfile) - PHP FPM, Nginx, Debian Jessie Slim
7.2
(Dockerfile) - PHP CLI, Alpine7.2-litespeed
(Dockerfile) - OpenLiteSpeed, PHP LiteSpeed SAPI, Alpine7.2-litespeed-slim
(Dockerfile) - OpenLiteSpeed, PHP LiteSpeed SAPI, Debian Jessie Slim7.2-nginx
(Dockerfile) - Nginx, PHP FPM, Alpine7.2-nginx-slim
(Dockerfile) - PHP FPM, Nginx, Debian Jessie Slim
Create a Dockerfile
for your setup:
FROM phpearth/php:nginx
To run a CLI PHP script:
docker run -it --rm -v `pwd`:/usr/src/myapp -w /usr/src/myapp phpearth/php php script.php
Check a more extended documentation for additional information how to use these images and what's included.
Contributions are most welcome. This repository is released under the MIT license.