Skip to content

Commit 3d787cf

Browse files
committed
volume xdebug.ini
1 parent 4a8fd4b commit 3d787cf

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

Dockerfiles/php-fpm/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ RUN apt-get install -y --no-install-recommends \
4747

4848

4949
COPY ./pool.conf /usr/local/etc/php-fpm.d/pool.conf
50-
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
5150

5251

5352

Dockerfiles/php-fpm/xdebug.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ xdebug.remote_enable=1
22
xdebug.remote_autostart=1
33
xdebug.remote_host=host.docker.internal
44
xdebug.remote_port=9001
5+
xdebug.profiler_enable = On
56
; xdebug.remote_log=/tmp/xdebug.log

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ services:
1111
volumes:
1212
- ./:/var/www
1313
- ./Dockerfiles/php-fpm/php.ini:/usr/local/etc/php/php.ini
14+
- ./Dockerfiles/php-fpm/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
1415
restart: on-failure
1516
extra_hosts:
1617
- "localhost:172.16.1.50"

0 commit comments

Comments
 (0)