docker-lnmp

:unamused: Deploy lnmp(Linux, Nginx, MySQL, PHP7) using docker.

Github stars Tracking Chart

Introduction

Deploy lnmp(Linux, Nginx, MySQL, PHP7) using docker.

I want to share my ideas and designs about Web-Deploying using Docker with you.

Architecture

architecture

The whole app is divided into three Containers:

  1. Nginx is running in Nginx Container, which handles requests and makes responses.
  2. PHP or PHP-FPM is put in PHP-FPM Container, it retrieves php scripts from host, interprets, executes then responses to Nginx. If necessary, it will connect to MySQL as well.
  3. MySQL lies in MySQL Container,

Our app scripts are located on host, you can edit files directly without rebuilding/restarting whole images/containers.

Build and Run

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

Check out your https://<docker-host> and have fun :beer:

Contributors

Micooz micooz@hotmail.com

sndnvaps sndnvaps@gmail.com

License

MIT

Main metrics

Overview
Name With Ownermicooz/docker-lnmp
Primary LanguageNginx
Program languageNginx (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2015-08-28 09:53:06
Pushed At2016-11-04 10:37:53
Last Commit At2016-04-19 21:43:32
Release Count2
Last Release Namev0.0.2 (Posted on 2016-04-19 21:43:54)
First Release Namev0.0.1 (Posted on 2016-04-19 21:32:13)
用户参与
Stargazers Count302
Watchers Count22
Fork Count149
Commits Count23
Has Issues Enabled
Issues Count11
Issue Open Count4
Pull Requests Count0
Pull Requests Open Count0
Pull Requests Close Count3
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private