Skip to content

YMC-GitHub/docker-lnmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

introduction

deploy lnmp(Linux+Nginx+mysql+PHP) using docker

about 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 your images

At first, you should have had Docker and Docker Compose installed.

$ docker-compose build

create,start and run your containers

Without building images one by one, you can make use of $(docker-compose) and simply use:

$ docker-compose up --detach

For more operations to containers, please refer to:

$ docker-compose --help

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

i prefer to use : docker-compose up --build --detach

Contributors

Micooz [email protected]

sndnvaps [email protected]

ymc-github [email protected]

License

MIT

About

deploy lnmp(Linux+nginx+mysql+php) using docker

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages