https://github.com/ymc-github/docker-lnmp
deploy lnmp(Linux+nginx+mysql+php) using docker
https://github.com/ymc-github/docker-lnmp
dkc docker mysql nginx php
Last synced: about 2 months ago
JSON representation
deploy lnmp(Linux+nginx+mysql+php) using docker
- Host: GitHub
- URL: https://github.com/ymc-github/docker-lnmp
- Owner: YMC-GitHub
- License: mit
- Created: 2019-12-15T09:26:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-15T09:28:29.000Z (over 6 years ago)
- Last Synced: 2025-02-25T09:24:05.891Z (over 1 year ago)
- Topics: dkc, docker, mysql, nginx, php
- Language: Shell
- Homepage:
- Size: 96.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## introduction
deploy lnmp(Linux+Nginx+mysql+PHP) using docker
## about 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 your images
At first, you should have had [Docker](https://docs.docker.com) and [Docker Compose](https://docs.docker.com/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://\ and have fun
i prefer to use : docker-compose up --build --detach
## Contributors
Micooz micooz@hotmail.com
sndnvaps sndnvaps@gmail.com
ymc-github yemiancheng@gmail.com
## License
MIT
[1]: architecture.png