{"repo":"TrafeX/docker-php-nginx","free":true,"listed":false,"github":"https://github.com/TrafeX/docker-php-nginx","clone":"git clone https://github.com/TrafeX/docker-php-nginx.git","description":"Docker image with PHP-FPM 8.5 & Nginx 1.30 on Alpine Linux","language":"Dockerfile","stars":1510,"topics":["php-fpm","docker","nginx-docker","nginx","php","containers","container","alpine-linux","php8","php8-docker"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Docker PHP-FPM 8.5 & Nginx 1.28 on Alpine Linux Example PHP-FPM 8.5 & Nginx 1.28 container image for Docker, built on Alpine Linux. Repository: https://github.com/TrafeX/docker-php-nginx Built on the lightweight and secure Alpine Linux distribution Multi-platform, supporting AMD4, ARMv6, ARMv7, ARM64 Very small Docker image size (+/-40MB) Uses PHP 8.5 for the best performance, low CPU usage & memory footprint Optimized for 100 concurrent users i.e. limits the concurrent requests serving php files Optimized to only use resources when there's traffic (by using PHP-FPM's on-demand process manager) The services Nginx, PHP-FPM and supervisord run under a non-privileged user (nobody) to make it more secure The logs of all the services are redirected to the output of the Docker container (visible with docker logs -f ) Follows the KISS principle (Keep It Simple, Stupid) to make it easy to understand and adjust the image to your needs I can help you with Containerization, Kubernetes, Monitoring, Infrastructure as Code and other DevOps challenges. Goal of this project The goal of this container image is to provide an example for running Nginx and PHP-FPM in a container which follows the best practices and is easy to understand and modify to your needs. Usage Start the Docker container: docker run -p 80:8080 trafex/php-nginx See the PHP info on http://localhost, or the static html page on http://localhost/test.html Or mount your own code to be served by PHP-FPM & Nginx docker run -p 80:","default_branch":null,"files":null,"tree":[],"storefront":"/r/TrafeX","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/TrafeX/docker-php-nginx/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}