Skip to content

Commit

Permalink
add php extension xdebug
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhong Hua committed Jun 24, 2022
1 parent b92e458 commit 983ffee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand Down Expand Up @@ -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`
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 983ffee

Please sign in to comment.