-
Add a new CLI interpreter using [Docker]
- choose image www-openstack:latest
- click [OK]
- select new CLI interpreter
- click [Apply]
-
Edit network settings at container
- goto Settings->PHP and locate "Docker Container" input.
- Click on Folder icon.
- a new popup titled "Edit Docker Container Settings" will open.
- fill the "Network Mode" input with the bridge name, to find it out run
$docker network list
command. and put the name of the bridge there.
-
Create new server
- goto Settings->PHP->Servers
- click on [+]
- fill up Name with "Docker"
- fill up Host with "0.0.0.0"
- fill up Port with "80"
- click use map mappings
- map root to /var/www
-
Create a remote debug configuration profile
- goto Run->Debug->Edit Configurations
- create a new "PHP Remote debug" Profile
- set name as "Docker"
- check "Filter debug connection by IDE key"
- set IDE KEY as "PHPSTORM"
- set Server as "Docker"