docker-lnmp

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

Github星跟踪图

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

主要指标

概览
名称与所有者micooz/docker-lnmp
主编程语言Nginx
编程语言Nginx (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2015-08-28 09:53:06
推送于2016-11-04 10:37:53
最后一次提交2016-04-19 21:43:32
发布数2
最新版本名称v0.0.2 (发布于 2016-04-19 21:43:54)
第一版名称v0.0.1 (发布于 2016-04-19 21:32:13)
用户参与
星数302
关注者数22
派生数149
提交数23
已启用问题?
问题数11
打开的问题数4
拉请求数0
打开的拉请求数0
关闭的拉请求数3
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?