Skip to content

marvin-neumann/docker-php-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LAMP using the official images:

  • PHP 5.6 + Apache 2.4
  • MySQL 5.7

Before running docker-compose up edit your source path and ip address in the .env file.

Some basic docker commands:

  • docker-compose up --build : build and start containers
  • docker-compose down : stop containers
  • docker system prune -a -f: delete all unused images and volumes

PhpStorm settings for Xdebug

DBGp Proxy

Go to File > Settings > Languages & Frameworks > PHP > Debug > DBGp Proxy

Set the following:

  • IDE Key: PHPSTORM same as XDEBUG_IDE_KEY in the .env file
  • Host: your IP address same as HOST_IP in the .env file
  • Port: 9001, same as xdebug.remote_port defined in the docker/php-apache/php-ini-overrides.ini

Debug

Go to File > Settings > Languages & Frameworks > PHP > Debug

  • In the Xdebug section set the Debug port to 9001, same as xdebug.remote_port

Docker

Go to File > Settings > Build, Execution, Deployment > Docker

  • Add + a new Docker connection
  • Set the connection to Docker, look at the PhpStorm Help for platform specific settings.

Servers

Go to File > Settings > Languages & Frameworks > PHP > Servers

  • Check Use path mappings
  • Map local project path to /src mountpoint in the Docker container

About

docker containers for lamp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published