- Nginx
- MySQL 5.7
- php-7.1 fpm with Xdebug enabled
- Composer
- Git
- Curl
- Redis
- tokenizer
- iconv
- mbstring
- xdebug
- libxml
- pcntl
Server | Port |
---|---|
Nginx | 80 |
MySQL | 4306 |
Redis | 6379 |
You need docker-compose installed to run. Execute the commands below:
$ docker-compose build nginx mysql php redis
$ docker-compose up -d nginx mysql redis
Finally open http://localhost/ and see everything working! π
The folder organization of your project should look like this: You can change this if you want
.
βββ application
β βββ public
β βββ index.php
βββ my-docker-php
To use Xdebug edit php-fpm71/php.ini
with your own local IP address in line 8:
xdebug.remote_host=YOUR_OWN_LOCAL_IP_ADDRESS