add env files for api and docker-compose update

This commit is contained in:
Chris Smith
2025-02-20 16:36:56 +01:00
parent ee7f00c3b6
commit e47cebafe0
5 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
FROM yiisoftware/yii2-php:8.3-apache
# Change document root for Apache
RUN sed -i -e 's|/app/web|/app/api/web|g' /etc/apache2/sites-available/000-default.conf
RUN echo "xdebug.client_port=9003" >> /usr/local/etc/php/conf.d/xdebug.ini
RUN echo "xdebug.idekey=api" >> /usr/local/etc/php/conf.d/xdebug.ini