Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/micooz/docker-lnmp
:unamused: Deploy lnmp(Linux, Nginx, MySQL, PHP7) using docker.
https://github.com/micooz/docker-lnmp
docker linux mysql nginx php7
Last synced: about 1 month ago
JSON representation
:unamused: Deploy lnmp(Linux, Nginx, MySQL, PHP7) using docker.
- Host: GitHub
- URL: https://github.com/micooz/docker-lnmp
- Owner: micooz
- License: mit
- Archived: true
- Created: 2015-08-28T09:53:06.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-04T10:37:53.000Z (about 8 years ago)
- Last Synced: 2024-09-25T21:49:17.360Z (about 1 month ago)
- Topics: docker, linux, mysql, nginx, php7
- Language: Nginx
- Homepage:
- Size: 358 KB
- Stars: 304
- Watchers: 22
- Forks: 151
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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][1]
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](https://docs.docker.com) and [Docker Compose](https://docs.docker.com/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://\ and have fun :beer:
### Contributors
Micooz
sndnvaps
### License
MIT
[1]: architecture.png