Lightweight nginx + PHP-FPM image based on php:8.4-fpm-alpine
166
Lightweight nginx + PHP-FPM image based on Alpine Linux.
| Component | Version |
|---|---|
| PHP | 8.4.27 |
| nginx | 1.30.4 |
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
| Variable | Description |
|---|---|
WEBROOT | Override the default webroot /var/www/html |
PHP_CATCHALL | If set, routes all requests through index.php (useful for frameworks like Laravel/Symfony) |
| Variable | Default | Description |
|---|---|---|
PHP_MEM_LIMIT | 128 | PHP memory limit in MB |
PHP_POST_MAX_SIZE | 100 | Max POST size in MB |
PHP_UPLOAD_MAX_FILESIZE | 100 | Max upload filesize in MB |
PHP_ERRORS_STDERR | — | If set, logs PHP errors to stderr |
| Variable | Description |
|---|---|
SKIP_COMPOSER | If set, skips automatic composer install on startup |
APPLICATION_ENV | Set to development to run composer install with dev dependencies |
| Variable | Description |
|---|---|
GIT_REPO | Git repository to clone into /var/www/html on startup |
GIT_BRANCH | Branch to checkout |
GIT_TAG | Tag to checkout |
GIT_COMMIT | Commit hash to checkout |
GIT_USERNAME | Username for HTTPS authentication |
GIT_PERSONAL_TOKEN | Personal access token for HTTPS authentication |
SSH_KEY | Base64-encoded SSH private key for SSH-based git access |
gd, pdo_mysql, mysqli, pdo_pgsql, pgsql, intl, xsl, zip, opcache, redis
Rebuilt automatically whenever the upstream php:8.4-fpm-alpine image is updated.
Content type
Image
Digest
sha256:0f58f72b8…
Size
234.6 MB
Last updated
about 1 hour ago
docker pull geertmeersman/nginx-php-fpm-lite