https://github.com/windomz/docker-lnmp
Use Docker to quickly and easily deploy LNMP(Linux, Nginx, MySQL, PHP7).
https://github.com/windomz/docker-lnmp
docker linux lnmp mysql nginx php php7
Last synced: 2 months ago
JSON representation
Use Docker to quickly and easily deploy LNMP(Linux, Nginx, MySQL, PHP7).
- Host: GitHub
- URL: https://github.com/windomz/docker-lnmp
- Owner: WindomZ
- License: mit
- Created: 2017-05-19T05:58:57.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-29T14:02:21.000Z (almost 9 years ago)
- Last Synced: 2025-10-28T11:34:42.678Z (8 months ago)
- Topics: docker, linux, lnmp, mysql, nginx, php, php7
- Language: PHP
- Homepage:
- Size: 21.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-en.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-lnmp
> Simply deploy lnmp(Linux, Nginx, MySQL, PHP7) using Docker.

[中文](https://github.com/WindomZ/docker-lnmp/blob/master/README.md#readme)
## Usage
#### Install
Cloned to the deployment path:
```bash
$ git clone https://github.com/WindomZ/docker-lnmp.git
$ cd docker-lnmp
```
#### Config
- Configure [`.env`](https://github.com/WindomZ/docker-lnmp/blob/master/.env) file, such as modifying `MYSQL_ROOT_PASSWORD` to yours.
- `nginx` configuration in `./nginx/nginx.conf`.
- `php-fpm` configuration in `./php-fpm/php.conf`.
- `mysql` configuration in `./mysql/conf.d` and `./mysql/mysql.conf.d`.
#### Build and Run
You should have had [Docker](https://docs.docker.com/)
and [Docker Compose](https://docs.docker.com/compose/) installed.
- If deploy **up** and run lnmp:
```bash
$ ./up.sh
```
- If deploy **down** and stop lnmp:
```bash
$ ./down.sh
```
## Volumes
### NGINX_ROOT
`nginx` root path.
In this deployment of your web project.
### MYSQL_DATA
`mysql` data source.
_DO NOT MODIFY!_
### SHARE
Shared folder between `nginx`, `php-fpm` and `mysql` containers.
## Reference
- [twang2218/docker-lnmp](https://github.com/twang2218/docker-lnmp)
- [micooz/docker-lnmp](https://github.com/micooz/docker-lnmp)