Version 1 LNMP (Linux, Nginx, PHP7, Mysql) Nginx and Mysql use the latest official image.
The whole app is divided into three Containers:
- Nginx is running in
NginxContainer, which handles requests and makes responses. - PHP or PHP-FPM is put in
PHP-FPMContainer, it retrieves php scripts from host, interprets, executes then responses to Nginx. If necessary, it will connect toMySQLas well. - MySQL lies in
MySQLContainer,
Reference: https://github.com/micooz/docker-lnmp.git
At first, you should have had Docker and Docker Compose installed.
Without building images one by one, you can make use of docker-compose and simply issue:
`$ sudo docker-compose up`
For more operations to containers, please refer to:
`$ sudo docker-compose --help`
MIT
