Deploy lnmp(Linux, Nginx, MySQL, PHP7) using docker, support full feature functions.
- Easy install,upgrade and use.
- Easy add a web site.
- Easy manage your database
- Easy add ssl & dnsssl to your web site
- Multi platforms via docker
- All configs stored on host
The whole server is divided into three docker containers:
Nginx is running in lnmp-docker-nginx-acme container, which handles requests and makes responses.
PHP or PHP-FPM is running in lnmp-docker-php-mysqli container, it retrieves php scripts from host, interprets, executes then responses to Nginx. If necessary, it will connect to MySQL as well. MySQL is running in lnmp-docker-mysql container,
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
$ ./lnmp-docker rebuild
$ sudo ./lnmp-docker start
$ sudo ./lnmp-docker vhost add
$ sudo ./lnmp-docker vhost list
$ sudo ./lnmp-docker vhost del
$ sudo ./lnmp-docker database add
$ sudo ./lnmp-docker database list
$ sudo ./lnmp-docker database del
$ sudo ./lnmp-docker ssl add
$ sudo ./lnmp-docker dnsssl ali
$ sudo ./lnmp-docker renew your_domain