Docker Image for php and nginx using alpine
297
Example PHP-FPM 7.4 & Nginx 1.18 setup for Docker, build on Alpine Linux. The image is only +/- 35MB large.
Repository: https://github.com/amitsdalal/alpine-nginx-php
docker logs -f <container name>)
Start the Docker container:
docker run -d -p 80:8080 amitdalal/alpine-nginx-php
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 -d -p 80:8080 -v ~/my-codebase:/var/www/html amitdalal/alpine-nginx-php
Content type
Image
Digest
Size
42.8 MB
Last updated
over 5 years ago
docker pull amitdalal/alpine-nginx-php