Public | Automated Build

Last pushed: 7 months ago
Short Description
Apache
Full Description

PHP Docker environment

How to run ?

First, Install docker and docker-compose. Go into the example directory and run docker-compose up -d inside this directory. Next open http://localhost/

Example notes:

  • The default nginx vhost is created for a Symfony project but can be changed for your needs
  • You can install your PHP application inside example/app
  • You can change the MySQL root password in docker-compose.yml by changing MYSQL_ROOT_PASSWORD
  • The host to connect to the MySQL server from your php code is mysql (the name of the linked container is mysql), on the host machine you can use localhost or 127.0.0.1
  • To enable/disable xdebug, see the command parameter in docker-compose.yml
Docker Pull Command
Owner
w3media
Source Repository