Fix : Config docker et xdebug

This commit is contained in:
2026-01-06 16:49:32 +01:00
parent c082224c7d
commit 6fc72d180a
6 changed files with 135 additions and 136 deletions

View File

@@ -103,12 +103,7 @@ RUN rm -rf /var/cache/apk/* && rm -rf /tmp/* && \
curl --insecure https://getcomposer.org/composer.phar -o /usr/bin/composer && chmod +x /usr/bin/composer
# Création de la structure du projet
RUN mkdir /var/www/html/APPLI && \
mkdir /var/www/html/BATCH && \
mkdir /var/www/html/DATA && \
mkdir /var/www/html/LOG && \
mkdir /var/www/html/PARAM
RUN ln -s /var/www/html/APPLI /var/www/html/CURRENT
RUN mkdir /var/www/html/LOG
# Activation du module pour Apache2 proxy_http et rewrite
RUN a2enmod proxy_http && \
@@ -128,6 +123,6 @@ RUN rm -rf \
/tmp/* \
/var/tmp/*
WORKDIR /var/www/html/APPLI
WORKDIR /var/www/html
EXPOSE 80

View File

@@ -2,9 +2,8 @@ zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20240924/xdebug.
xdebug.mode=debug
xdebug.idekey=PHPSTORM
xdebug.start_with_request=yes
xdebug.discover_client_host=no
xdebug.discover_client_host=1
xdebug.client_port=9003
xdebug.log="/var/www/html/LOG/xdebug.log"
xdebug.log_level = 0
xdebug.client_host=host.docker.internal
xdebug.log_level=0
xdebug.connect_timeout_ms=2

View File

@@ -1,15 +1,15 @@
<VirtualHost *:80>
DocumentRoot /var/www/html/CURRENT
DocumentRoot /var/www/html
AliasMatch "^/api(/.*)?" "/var/www/html/CURRENT/public$1"
<Directory /var/www/html/CURRENT/public>
AliasMatch "^/api(/.*)?" "/var/www/html/public$1"
<Directory /var/www/html/public>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
AliasMatch "^(/.*)?" "/var/www/html/CURRENT/frontend/dist$1"
<Directory /var/www/html/CURRENT/frontend/dist>
AliasMatch "^(/.*)?" "/var/www/html/frontend/dist$1"
<Directory /var/www/html/frontend/dist>
AllowOverride All
Order allow,deny
Allow from All