Sign inSign up

arthurpai/alpine-nginx-php7

By arthurpai

•Updated over 7 years ago

Docker PHP-FPM 7.3 & Composer 1.8.6 & Nginx 1.16 on Alpine Linux

Image
0

524

arthurpai/alpine-nginx-php7 repository overview

⁠Docker PHP-FPM 7.3 & Composer 1.8.6 & Nginx 1.16 on Alpine Linux

PHP-FPM 7.3 & Composer 1.8.6 & Nginx 1.16 setup for Docker, build on Alpine Linux⁠. The image is only +/- 50MB large.

Repository: https://github.com/ArthurPai/docker-php-nginx⁠

  • Built on the lightweight and secure Alpine Linux distribution
  • Very small Docker image size (+/-50MB)
  • Uses PHP 7.3 for better performance, lower cpu usage & memory footprint
  • Optimized for 100 concurrent users
  • Optimized to only use resources when there's traffic (by using PHP-FPM's ondemand PM)
  • The logs of all the services are redirected to the output of the Docker container (visible with docker logs -f <container name>)
  • Follows the KISS principle (Keep It Simple, Stupid) to make it easy to understand and adjust the image

Docker Pulls Docker image layers nginx 1.16.1 php 7.3 Composer 1.8.6 License MIT

⁠Usage

Start the Docker container:

docker run -p 8080:80 arthurpai/alpine-nginx-php7

See the PHP info on http://localhost:8080⁠

Or mount your own code to be served by PHP-FPM & Nginx

docker run -p 8080:80 -v ~/my-codebase:/var/www/html arthurpai/alpine-nginx-php7

Tag summary

Content type

Image

Digest

Size

46.9 MB

Last updated

over 7 years ago

docker pull arthurpai/alpine-nginx-php7