- sail artisan sail:publish
INFO Publishing [sail-docker] assets.
Copying directory [vendor/laravel/sail/runtimes] to [docker] ..................................... DONE
INFO Publishing [sail-database] assets.
Copying directory [vendor/laravel/sail/database] to [docker] ..................................... DONE
docker-compose.yml
services:
laravel.test:
build:
context: ./docker/8.3
dockerfile: Dockerfile
...
docker/8.3/ext-xdebug.ini
xdebug.start_with_request=yes
xdebug.discover_client_host=true
xdebug.max_nesting_level=256
xdebug.remote_handler=dbgp
xdebug.client_port=9003
xdebug.idekey=VSCODE
xdebug.mode=debug
xdebug.client_host=host.docker.internal
xdebug.var_display_max_depth=5
.vscode/launch.json
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003,
"log": false,
"externalConsole": false,
"pathMappings": {
"/var/www/html": "${workspaceFolder}",
},
"ignore": [
"**/vendor/**/*.php",
],
}