Public | Automated Build

Last pushed: 8 months ago
Short Description
PHP 7.0 fpm
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
  • To enable/disable xdebug, see the command parameter in docker-compose.yml
Docker Pull Command
Source Repository