https://github.com/gustavocstl/my-docker-php
🐳 Docker running PHP-FPM, Nginx, MySQL, Redis and Xdebug enabled
https://github.com/gustavocstl/my-docker-php
docker docker-compose docker-nginx docker-nginx-php docker-xdebug nginx php php-fpm71 xdebug
Last synced: 3 months ago
JSON representation
🐳 Docker running PHP-FPM, Nginx, MySQL, Redis and Xdebug enabled
- Host: GitHub
- URL: https://github.com/gustavocstl/my-docker-php
- Owner: gustavocstl
- Created: 2018-02-08T17:12:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-18T22:36:41.000Z (over 7 years ago)
- Last Synced: 2025-01-30T03:28:39.830Z (5 months ago)
- Topics: docker, docker-compose, docker-nginx, docker-nginx-php, docker-xdebug, nginx, php, php-fpm71, xdebug
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](http://makeapullrequest.com)
# Docker running PHP-FPM, Nginx, MySQL, Redis and Xdebug enabled
## This docker contains
- Nginx
- MySQL 5.7
- php-7.1 fpm with Xdebug enabled
- Composer
- Git
- Curl
- Redis### Libs enabled with PHP
- tokenizer
- iconv
- mbstring
- xdebug
- libxml
- pcntl### Ports configuration
| Server | Port |
|------------|------|
| Nginx | 80 |
| MySQL | 4306 |
| Redis | 6379 |---
## Using
You need docker-compose installed to run. Execute the commands below:
```sh
$ docker-compose build nginx mysql php redis
$ docker-compose up -d nginx mysql redis
```Finally open http://localhost/ and see everything working! 👍
## Folder tree
The folder organization of your project should look like this:
*You can change this if you want*```sh
.
├── application
│ └── public
│ └── index.php
└── my-docker-php
```## Xdebug
To use Xdebug edit `php-fpm71/php.ini` with your own local IP address in line 8:
```sh
xdebug.remote_host=YOUR_OWN_LOCAL_IP_ADDRESS
```