Sign inSign up

w3media/php72-fpm

By w3media

•Updated about 7 years ago

php72-fpm

Image
1

10K+

w3media/php72-fpm repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

423.2 MB

Last updated

about 7 years ago

docker pull w3media/php72-fpm