/php-xdebug-alpine

This should contain all the images that I'll build for PHP 7.x with xdebug enabled

Primary LanguageDockerfileMIT LicenseMIT

Docker Pulls

Image description

This image contain PHP 7.x based on alpine with xDebug, MySQL, PostgreSQL, Redis & GD enabled and Composer already installed

Runing the image:

Configuring xDebug

By default xdebug is enabled, to disable it you need to create a .env file which should contain the following variables, but remember to change the value based one what you want to achieve:

PHP_XDEBUG_DEFAULT_ENABLE=0
PHP_XDEBUG_REMOTE_ENABLE=0
PHP_XDEBUG_REMOTE_HOST=127.0.0.1
PHP_XDEBUG_REMOTE_PORT=9001
PHP_XDEBUG_REMOTE_AUTO_START=0
PHP_XDEBUG_REMOTE_CONNECT_BACK=0
PHP_XDEBUG_IDEKEY=docker
PHP_XDEBUG_PROFILER_ENABLE=0
PHP_XDEBUG_PROFILER_OUTPUT_DIR=/tmp

Configuring OPCache

By default OPCache is enabled, to disable it you need to create a .env file which should contain the following variables, but remember to change the value based one what you want to achieve:

PHP_OPCACHE_VALIDATE_TIMESTAMPS=0
PHP_OPCACHE_MAX_ACCELERATED_FILES=10000
PHP_OPCACHE_MEMORY_CONSUMPTION=192
PHP_OPCACHE_MAX_WASTED_PERCENTAGE=10

Then run the docker and specify the env file that you have created like this

docker run --env-file .env -p 80:80 zaherg/php-xdebug-alpine:<version>

Versions available

  1. zaherg/php-xdebug-alpine:7.1
  2. zaherg/php-xdebug-alpine:7.2
  3. zaherg/php-xdebug-alpine:7.3

Latest will always be used with the latest PHP version

Installed modules information

It has the following modules:

[PHP Modules]

  1. Core
  2. ctype
  3. curl
  4. date
  5. dom
  6. fileinfo
  7. filter
  8. ftp
  9. gd
  10. hash
  11. iconv
  12. intl
  13. json
  14. libxml
  15. mbstring
  16. mysqlnd
  17. openssl
  18. pcre
  19. PDO
  20. pdo_mysql
  21. pdo_pgsql
  22. pdo_sqlite
  23. pgsql
  24. Phar
  25. posix
  26. readline
  27. redis
  28. Reflection
  29. session
  30. SimpleXML
  31. sodium
  32. SPL
  33. sqlite3
  34. standard
  35. tokenizer
  36. xdebug
  37. xml
  38. xmlreader
  39. xmlwriter
  40. zip
  41. zlib

[Zend Modules]

  1. Xdebug

GD information

GD Support => enabled
GD Version => bundled (2.1.0 compatible)
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.8.1
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 8
PNG Support => enabled
libPNG Version => 1.6.34
WBMP Support => enabled
XBM Support => enabled

Directive => Local Value => Master Value
gd.jpeg_ignore_warning => 1 => 1