Docker image with Nginx & PHP-FPM on Alpine Linux
938
A minimal Nginx + PHP-FPM Docker image built on Alpine Linux.
This project is a fork of erseco/alpine-php-webserver. The upstream documentation is available here.
ruseler/alpine-php-webserver packages Nginx, PHP-FPM and a handful of common PHP extensions into a ~25 MB container ready to serve any PHP application. It is designed to be:
runit.nobody user.ondemand FPM process manager; Unix socket between Nginx and PHP; OPcache-ready./etc/service/<name>/run, init scripts into /docker-entrypoint-init.d/, Nginx snippets into /etc/nginx/conf.d/ or /etc/nginx/server-conf.d/.envsubst.This image is the base for ruseler/alpine-moodle and powers numerous Symfony, Laravel, WordPress and plain PHP deployments.
runit, avoiding the overhead of supervisordnobody for improved securityHEALTHCHECK hitting the FPM ping endpoint./php directory in under a minute./fpm-ping does and where logs go.docker push ruseler/alpine-php-webserver:tagname
docker run --rm -p 8080:8080 ruseler/alpine-php-webserver
phpinfo()Mount your own code to serve it:
docker run --rm -p 8080:8080 -v "$PWD/php:/var/www/html" ruseler/alpine-php-webserver
This documentation is a fork of erseco/alpine-php-webserver. The upstream documentation is available here.
Content type
Image
Digest
sha256:f81f349fa…
Size
32.6 MB
Last updated
4 days ago
docker pull ruseler/alpine-php-webserver:php84