### Wordpress Docker Hub
4.9-php7.0-apache (wordpress/4.9/php7.0/apache/Dockerfile)7.0-apache (php/7.0/apache/Dockerfile)7.1-apache (php/7.1/apache/Dockerfile)7.2-apache (php/7.2/apache/Dockerfile)sudo ifconfig lo0 alias 10.254.254.254 255.255.255.0
web:
environment:
PHP_XDEBUG_ENABLED: 1 # Set 1 to enable.
XDEBUG_CONFIG: remote_host=10.254.254.254 remote_port=9000 idekey=phpstorm remote_log=/tmp/xdebug.log
This may require sudo. We don't copy it to ~/Library/LaunchAgents because needs to be run as sudo?
curl https://raw.githubusercontent.com/fanatikcoders/docker-library/master/assets/autorun_alias_for_lo.plist >> /Library/LaunchDaemons/com.rbngzlv.docker_10254254254_alias.plist


Note: Remind to click to listen PHP Debug connections and check that firewall is not rejecting connections
ping docker.for.mac.host.internal
ifconfig en0 | awk '/ *inet /{print $2}'
docker network inspect bridge |awk '/"Gateway"/ {gsub ("\"","") ;print $2}'
Content type
Image
Digest
Size
167.2 MB
Last updated
over 8 years ago
docker pull fanatikcoders/wordpress:4.9-php7.0-apache