Sign inSign up

meritoo/php

By meritoo

•Updated 3 months ago

Run PHP applications without any effort

Image
0

1.3K

meritoo/php repository overview

⁠PHP versions supported

  • 8.5 - use meritoo/php:8.5, meritoo/php:latest or just meritoo/php image
  • 8.4 - use meritoo/php:8.4 image
  • 8.3 - use meritoo/php:8.3 image
  • 8.2 - use meritoo/php:8.2 image
  • 8.1 - use meritoo/php:8.1 image
  • 8.0 - use meritoo/php:8.0 image
  • 7.4 - use meritoo/php:7.4 image

⁠PHP extensions included

  • apcu
  • opcache
  • gd
  • imagick
  • imap
  • intl
  • pdo
  • pdo_mysql
  • xdebug
  • zip

⁠Available tools

⁠Configuration

Supported configuration parameters:

  • date.timezone - PHP_DATE_TIMEZONE
  • display_errors - PHP_DISPLAY_ERRORS
  • memory_limit - PHP_MEMORY_LIMIT
  • max_execution_time - PHP_MAX_EXECUTION_TIME
  • post_max_size - PHP_POST_MAX_SIZE
  • upload_max_filesize - PHP_UPLOAD_MAX_FILESIZE

May be set as environment variables while running container (e.g. in .env file) or may be set defined in Docker Compose file (e.g. in docker-compose.yaml).

⁠Example

⁠Configuration of date.timezone and memory_limit parameters.
⁠Option 1 - .env file:
# /.env

PHP_DATE_TIMEZONE=Europe/Warsaw
PHP_MEMORY_LIMIT=256M
⁠Option 2 - docker-compose.yaml file:
# /compose.yaml

version: '3.9'

services:
    php:
        image: meritoo/php
        environment:
            PHP_DATE_TIMEZONE: ${PHP_DATE_TIMEZONE}
            PHP_MEMORY_LIMIT: ${PHP_MEMORY_LIMIT}
            # (...)

Tag summary

Content type

Image

Digest

sha256:7d85aeda4…

Size

450.6 MB

Last updated

3 months ago

docker pull meritoo/php