Using xdebug through Docker container in PhpStorm
问题 I've read some posts about this but none helped in my case or simply overlooked the missing piece. I cannot get xdebug to work on PhpStorm using a Docker container. Docker-compose.yml version: '2' services: web: image: nginx:latest volumes: - .:/usr/share/nginx/html - ./nginx/nginx.conf:/etc/nginx/nginx.conf - ./nginx/logs:/var/logs/nginx - ./nginx/site-enabled/default.conf:/etc/nginx/sites-enabled/default.conf ports: - "80:80" depends_on: - php db: image: mysql:5.7 environment: MYSQL_ROOT