/dokcer-php5.6-xdebug

Docker Image from PHP 5.6 Using Xdebug

Primary LanguageDockerfile

Docker PHP v5.6 xdebug

Docker image to use php5.6 with xdebug using PHP Storm

This is a debugging usage example tested on Ubuntu, Windows and Mac

docker-compose-debug.yml

version: '3.5'
services:
  app:
    image: gbrayhan/php56_xdebug:v1.1
    ports:
      - "8000:80"
    working_dir: /srv/app
    volumes:
      - ./:/srv/app
    environment:
      XDEBUG_CONFIG: remote_host=docker.for.mac.localhost
      # XDEBUG_CONFIG: remote_host=localhost
      # XDEBUG_CONFIG: remote_host=host.docker.internal
    command: >
      bash -c "wget https://getcomposer.org/download/1.9.0/composer.phar
      && php composer.phar install --ignore-platform-reqs && /usr/sbin/apachectl -D FOREGROUND "