Answer the question
In order to leave comments, you need to log in
How to set up xdebug on Ubuntu in Docker?
Hello, there is a vps with ubuntu
on it, a docker, inside of which there is a clean project on laravel
, here is the compose config
version: '3.1'
services:
mailhog:
image: 'mailhog/mailhog:latest'
ports:
- '18025:8025'
mysql:
image: 'mysql:8.0'
working_dir: /application
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=example
- MYSQL_USER=mysql
- MYSQL_PASSWORD=mysql
ports:
- '13306:3306'
webserver:
image: 'nginx:alpine'
working_dir: /application
volumes:
- './src:/application'
- './docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf'
ports:
- '180:80'
php-fpm:
build: docker/php-fpm
working_dir: /application
volumes:
- './src:/application'
- './docker/php-fpm/php-ini-overrides.ini:/etc/php/8.1/fpm/conf.d/99-overrides.ini'
environment:
APP_ENV: dev
APP_DEBUG: 1
XDEBUG_CONFIG: "client_host=192.168.200.1 client_port=9003"
PHP_IDE_CONFIG: "serverName=example"
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.200.0/28
xdebug.mode = debug
xdebug.idekey = PHPSTORM
[Step Debug] Creating socket for '192.168.200.1:9003', poll success, but error: Operation now in progress (29)
[Step Debug] Could not connect to debugging client. Tried: 192.168.200.1:9003 (through xdebug.client_host/xdebug.client_port) :-(
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question