[ad_1]
I have several Docker containers with one Moodle instance each. For the Docker configuration I use the following file:
zend_extension=xdebug.so
xdebug.mode=develop,debug
xdebug.start_with_request=yes
xdebug.discover_client_host=0
xdebug.client_host=host.docker.internal
And in docker-compose.yml:
php:
extra_hosts:
- "host.docker.internal:host-gateway".
build:
context: .
dockerfile: Dockerfile
ports:
- 80:80
volumes:
- ./src:/var/www/html/
- ./moodledata:/var/www/moodledata
The problem is that it only works in one of the containers; specifically, the one I launch first. Can there be any conflict between both with this configuration? To listen I use PHPStorm.
[ad_2]