Docker quickly builds a PHP, Nginx, MySQL, Redis, Xdebug, Memcached development environment and evolves

Docker quickly builds a PHP, Nginx, MySQL, Redis, Xdebug, Memcached development environment and evolves

Pain points When the author tries to start a new web project, he often falls into the tedious task of re-establishing a Docker environment. I think that when you start a new project, or quickly in order to completely isolate it from previous projects, you will also set up a new docker environment. What you will get from this article Use docker-compose container orchestration technology to start all services in one step. On the official basis, the php container also packs some commonly used extensions (with build source code, you can package it yourself if you have strong hands-on skills), php, nginx, and mysql all come with custom configuration files (easy to configure and adjust for development and testing), all for download . Structure The environment built by this article is shown in the picture above. Environment description Operating environment Mac OS 10.13.6 Virtual Box 5.2.14 Ubuntu 16.04.4 Docker 17.07.0-ce Container Nginx 1.12.1-alpine PHP-fpm 5.6 MySQL 5.7 Redis 3.2 Memcached 1.4.27 Here to explain the author’s operating environment. I installed the vbox virtual machine on the Mac machine, installed the Docker environment in the debian environment inside the virtual machine, and placed the files in the Mac environment. Through the…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索