restructrue
Some checks failed
CI / linting (push) Has been cancelled

This commit is contained in:
Dennis Eichhorn 2024-06-13 15:39:48 +02:00
parent 37e5c93735
commit 08b1d61f04
4 changed files with 26 additions and 1 deletions

View File

@ -47,7 +47,10 @@ RUN a2enmod php8.3 && \
EXPOSE 80
# Setup php-xdebug
RUN echo -e "zend_extension=xdebug.so\nxdebug.mode=debug,profile,trace\nxdebug.start_with_request=yes\nxdebug.client_port=9003\nxdebug.client_host=localhost\nxdebug.trace_format=1" > /etc/php/8.3/apache2/conf.d/20-xdebug.ini
COPY data/000-default.conf /etc/apache2/sites-enabled/000-default.conf
COPY data/20-xdebug.ini /etc/php/8.3/apache2/conf.d/20-xdebug.ini
RUN echo "ServerName 127.0.0.2" >> /etc/apache2/apache2.conf
RUN service apache2 restart

View File

@ -0,0 +1,13 @@
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

View File

@ -0,0 +1,7 @@
error_reporting=E_ALL
zend_extension=xdebug.so
xdebug.mode=debug,profile,trace
xdebug.start_with_request=yes
xdebug.client_port=9003
xdebug.client_host=host.docker.internal
xdebug.trace_format=1

View File

@ -19,6 +19,8 @@ services:
ports:
- "127.0.0.2:80:80"
- "127.0.0.2:9003:9003"
extra_hosts:
host.docker.internal: host-gateway
volumes:
- ./../../:/var/www/html
depends_on: