2 Star 0 Fork 1

依剑听雨 / docker-lnmp

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
README.md 1.17 KB
Copy Edit Web IDE Raw Blame History
Micooz authored 2016-04-19 21:39 . update README

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

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/zhdong/docker-lnmp.git
git@gitee.com:zhdong/docker-lnmp.git
zhdong
docker-lnmp
docker-lnmp
master

Search

103611 48b8ff67 1899542 103622 4d02230c 1899542