Sign inSign up

cravler/php

By cravler

Updated 13 days ago

PHP (CLI and FPM) images

Image
0

7.1K

cravler/php repository overview

End of life

How to use CLI image

docker run --rm cravler/php php -r 'echo "Hello CLI!\n";'

or

docker run -it --rm cravler/php composer

How to use FPM image

docker run --name php-fpm --link nginx:nginx -d cravler/php:fpm

Environment variables

The following environment variables are also honored for configuring your PHP-CLI instance:

  • -e PHP_DATE_TIMEZONE=... (defaults to $TZ=UTC)
  • -e COMPOSER_GITHUB_OAUTH=... (defaults to '')

The following environment variables are also honored for configuring your PHP-FPM instance:

  • -e PHP_DATE_TIMEZONE=... (defaults to $TZ=UTC)
  • -e PHP_FPM_MAX_EXECUTION_TIME=... (defaults to 30)
  • -e PHP_FPM_MAX_INPUT_TIME=... (defaults to 60)
  • -e PHP_FPM_MEMORY_LIMIT=... (defaults to 128M)
  • -e PHP_FPM_LOG_LEVEL=... (defaults to notice, available: alert, error, warning, notice, debug)
  • -e PHP_FPM_LISTEN=... (defaults to 9000)
  • -e PHP_FPM_USER=... (defaults to 0)
  • -e PHP_FPM_GROUP=... (defaults to 0)

Tag summary

Content type

Image

Digest

sha256:f2e705d3e

Size

123.4 MB

Last updated

13 days ago

docker pull cravler/php