diff --git a/README.md b/README.md index 94e50b0..67e298b 100644 --- a/README.md +++ b/README.md @@ -11,10 +11,10 @@ The following are built for our web server, with their exposed ports detailed: The images are minimized as much as possible: -- `docker_php 130MB` -- `redis 32.3MB` -- `nginx 20.5MB` -- `mysql/mysql-server 436MB` +- `docker_php 135MB` +- `redis 28.1MB` +- `nginx 22.1MB` +- `mysql/mysql-server 489MB` ## **Prerequisites** @@ -81,6 +81,7 @@ follow the steps from the [wwwroot/README.md](wwwroot/README.md) file to get you - `Zend OPcache` - `zip` - `zlib` +- `xdebug` ### **Nginx Service** - `Accessing the Container Shell` diff --git a/docker-compose.yml b/docker-compose.yml index 759d93b..ecf077e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,6 +34,8 @@ services: - "443:443" - "8000:8000" - "8080:8080" + # Add the port for Xdebug here + - "9001:9001" environment: MYSQL_ROOT_PASSWORD: 12345678 TZ: Asia/Shanghai diff --git a/php/Dockerfile b/php/Dockerfile index 44fdb27..39eb436 100644 --- a/php/Dockerfile +++ b/php/Dockerfile @@ -46,8 +46,8 @@ RUN apk add --no-cache \ && apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \ libmemcached-dev \ zlib-dev \ - && pecl install redis memcached \ - && docker-php-ext-enable redis memcached \ + && pecl install redis memcached xdebug \ + && docker-php-ext-enable redis memcached xdebug \ && rm -rf /tmp/pear \ && apk del -f .build-deps