Skip to content

Commit a84eaaf

Browse files
author
Paliard Stanislas
committed
add xdebug
1 parent 68856d2 commit a84eaaf

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ RUN docker-php-ext-enable pdo_mysql
1717
RUN apt-get -y install --fix-missing zip unzip
1818
RUN apt-get -y install --fix-missing git
1919

20+
# xdebug
21+
RUN pecl install xdebug
22+
RUN echo "zend_extension=$(find / -name xdebug.so)" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
23+
RUN echo 'xdebug.client_port=9000' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
24+
RUN echo 'xdebug.mode=debug' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
25+
RUN echo 'xdebug.client_host=host.docker.internal' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
26+
2027
# Composer
2128
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
2229
RUN composer self-update --2

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ services:
99
codeigniter4:
1010
image: atsanna/codeigniter4:latest
1111
container_name: 'codeigniter4'
12+
build:
13+
context: .
1214
ports:
1315
- 80:80
1416
links:

0 commit comments

Comments
 (0)