getinapp/php

By getinapp

Updated about 1 month ago

Custom PHP FPM docker image based on Alpine Linux.

Image
Languages & frameworks
1

10K+

getinapp/php repository overview

Description

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.

About composer

All images currently ship out with Composer 2.x.

Available Tags

The image built is getinapp/php which has some tags available:

8
  • 8.0
7
  • 7.4

Environment Variables

VariableDefault ValueDescription
ASUSER0Changes the user id that executes the commands
UID0Changes the user id that executes the commands (ignored if ASUSER is provided)
COMPOSER_ALLOW_SUPERUSER1Allows composer to run with super user
COMPOSER_MEMORY_LIMIT-1Changes composer memory limit
ENABLE_XDEBUGfalseEnables the Xdebug extension
PHP_DATE_TIMEZONEUTCChanges timezone used by date/time functions
PHP_MEMORY_LIMIT256MChanges PHP memory limit
PHP_MAX_INPUT_VARS1000 Changes how many input variables may be accepted on PHP
PHP_UPLOAD_MAX_FILESIZE25MChanges PHP maximum size of an uploaded file
PHP_POST_MAX_SIZE25MChanges PHP max size of post data allowed
PHP_MAX_EXECUTION_TIME30Changes PHP maximum time is allowed to run a script
PHP_FPM_LISTEN9000Changes the PORT address of the FastCGI requests
PHP_FPM_MAX_CHILDREN10Changes the number of child processes to be used on FPM
PHP_FPM_REQUEST_TERMINATE_TIMEOUT60Changes FPM timeout to serve a single request

Usage

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}"

License

The MIT License (MIT).

Tag summary

Content type

Image

Digest

sha256:0d2937dca

Size

168.2 MB

Last updated

about 1 month ago

docker pull getinapp/php:8.4-nginx