An open API service indexing awesome lists of open source software.

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).

Awesome Lists containing this project

README

          

# docker-lnmp

> Simply deploy lnmp(Linux, Nginx, MySQL, PHP7) using Docker.

![UpdateDate](https://img.shields.io/badge/update-2017--06--29-brightgreen.svg?style=flat-square)

[中文](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)