mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-15 18:28:40 +00:00
parent
37e5c93735
commit
08b1d61f04
|
|
@ -47,7 +47,10 @@ RUN a2enmod php8.3 && \
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
# Setup php-xdebug
|
# 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
|
RUN service apache2 restart
|
||||||
|
|
||||||
|
|
|
||||||
13
docker/data/000-default.conf
Normal file
13
docker/data/000-default.conf
Normal 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>
|
||||||
7
docker/data/20-xdebug.ini
Normal file
7
docker/data/20-xdebug.ini
Normal 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
|
||||||
|
|
@ -19,6 +19,8 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.2:80:80"
|
- "127.0.0.2:80:80"
|
||||||
- "127.0.0.2:9003:9003"
|
- "127.0.0.2:9003:9003"
|
||||||
|
extra_hosts:
|
||||||
|
host.docker.internal: host-gateway
|
||||||
volumes:
|
volumes:
|
||||||
- ./../../:/var/www/html
|
- ./../../:/var/www/html
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user