Sign inSign up

geertmeersman/nginx-php-fpm-lite

By geertmeersman

•Updated about 7 hours ago

Lightweight nginx + PHP-FPM image based on php:8.4-fpm-alpine

Image
0

180

geertmeersman/nginx-php-fpm-lite repository overview

⁠nginx-php-fpm-lite

Lightweight nginx + PHP-FPM image based on Alpine Linux.

⁠Current versions

ComponentVersion
PHP8.4.27
nginx1.30.4

⁠Usage

docker run -p 80:80 geertmeersman/nginx-php-fpm-lite:latest

Mount your app:

docker run -p 80:80 -v $(pwd):/var/www/html geertmeersman/nginx-php-fpm-lite:latest

⁠Environment variables

⁠Webserver
VariableDescription
WEBROOTOverride the default webroot /var/www/html
PHP_CATCHALLIf set, routes all requests through index.php (useful for frameworks like Laravel/Symfony)
⁠PHP
VariableDefaultDescription
PHP_MEM_LIMIT128PHP memory limit in MB
PHP_POST_MAX_SIZE100Max POST size in MB
PHP_UPLOAD_MAX_FILESIZE100Max upload filesize in MB
PHP_ERRORS_STDERR—If set, logs PHP errors to stderr
⁠Composer
VariableDescription
SKIP_COMPOSERIf set, skips automatic composer install on startup
APPLICATION_ENVSet to development to run composer install with dev dependencies
⁠Git
VariableDescription
GIT_REPOGit repository to clone into /var/www/html on startup
GIT_BRANCHBranch to checkout
GIT_TAGTag to checkout
GIT_COMMITCommit hash to checkout
GIT_USERNAMEUsername for HTTPS authentication
GIT_PERSONAL_TOKENPersonal access token for HTTPS authentication
SSH_KEYBase64-encoded SSH private key for SSH-based git access

⁠Included PHP extensions

gd, pdo_mysql, mysqli, pdo_pgsql, pgsql, intl, xsl, zip, opcache, redis

⁠Auto-updates

Rebuilt automatically whenever the upstream php:8.4-fpm-alpine image is updated.

Tag summary

Content type

Image

Digest

sha256:0f58f72b8…

Size

234.6 MB

Last updated

about 7 hours ago

docker pull geertmeersman/nginx-php-fpm-lite