As you know PHP 7.2 has been released while ago, so I recommend that you start using it ASAP, and you can get the same functionality that you have in this image by using my PHP7.2 image https://hub.docker.com/r/zaherg/php-7.2-xdebug-alpine/
This image contain php-7.1 based on alpine with xDebug enabled and Composer installed
PHP 7.1.24 (fpm-fcgi) (built: Nov 16 2018 05:54:39)
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
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
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-7.1-xdebug-alpine
It has the following modules:
[PHP Modules]
- Core
- ctype
- curl
- date
- dom
- fileinfo
- filter
- ftp
- hash
- iconv
- json
- libxml
- mbstring
- mcrypt
- mysqlnd
- openssl
- pcre
- PDO
- pdo_mysql
- pdo_sqlite
- Phar
- posix
- readline
- redis
- Reflection
- session
- SimpleXML
- soap
- sodium
- SPL
- sqlite3
- standard
- tokenizer
- xdebug
- xml
- xmlreader
- xmlwriter
- zlib
[Zend Modules]
- Xdebug