Custom PHP FPM docker image based on Alpine Linux.
10K+
Minimal PHP Docker image focused on Laravel applications. It's use is intended for Get In, but can fit in any other PHP use-case.
composerAll images currently ship out with Composer 2.x.
The image built is getinapp/php which has some tags available:
| Variable | Default Value | Description |
|---|---|---|
| ASUSER | 0 | Changes the user id that executes the commands |
| UID | 0 | Changes the user id that executes the commands (ignored if ASUSER is provided) |
| COMPOSER_ALLOW_SUPERUSER | 1 | Allows composer to run with super user |
| COMPOSER_MEMORY_LIMIT | -1 | Changes composer memory limit |
| ENABLE_XDEBUG | false | Enables the Xdebug extension |
| PHP_DATE_TIMEZONE | UTC | Changes timezone used by date/time functions |
| PHP_MEMORY_LIMIT | 256M | Changes PHP memory limit |
| PHP_MAX_INPUT_VARS | 1000 | Changes how many input variables may be accepted on PHP |
| PHP_UPLOAD_MAX_FILESIZE | 25M | Changes PHP maximum size of an uploaded file |
| PHP_POST_MAX_SIZE | 25M | Changes PHP max size of post data allowed |
| PHP_MAX_EXECUTION_TIME | 30 | Changes PHP maximum time is allowed to run a script |
| PHP_FPM_LISTEN | 9000 | Changes the PORT address of the FastCGI requests |
| PHP_FPM_MAX_CHILDREN | 10 | Changes the number of child processes to be used on FPM |
| PHP_FPM_REQUEST_TERMINATE_TIMEOUT | 60 | Changes FPM timeout to serve a single request |
With docker run:
docker run -it --rm getinapp/php:7.4 php -v
With environment variables:
docker run -it --rm -e ASUSER=1000 getinapp/php:7.4 php -v
With docker-compose.yml:
app:
image: getinapp/php:7.4
ports:
- "9773:9773"
volumes:
- ".:/app:cached"
- "$HOME/.ssh/id_rsa:/root/.ssh/id_rsa:cached"
environment:
ASUSER: "${$UID}"
The MIT License (MIT).
Content type
Image
Digest
sha256:0d2937dca…
Size
168.2 MB
Last updated
about 1 month ago
docker pull getinapp/php:8.4-nginx