https://github.com/zhan3333/nmpr
Docker 快速运行起 LNMP 运行环境 / Quickly run thr MySQL + PHP + Nginx + Redis environment
https://github.com/zhan3333/nmpr
Last synced: about 1 year ago
JSON representation
Docker 快速运行起 LNMP 运行环境 / Quickly run thr MySQL + PHP + Nginx + Redis environment
- Host: GitHub
- URL: https://github.com/zhan3333/nmpr
- Owner: zhan3333
- License: mit
- Created: 2019-04-16T00:38:55.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-05T17:35:53.000Z (about 5 years ago)
- Last Synced: 2025-04-13T22:57:43.433Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 12.4 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker run MySQL+ PHP + Nginx + Redis
- PHP
- Version: 7.4.9
- Expansions
- mongodb
- swoole
- redis
- Composer
- Tool
- tailf
- busybox
- htop
- MYSQL
- Version: 8.0+
- Redis
- Version: 4.2
- Nginx
- Version: alpine
## Quick start
You need to install `docker` first. `https://docs.docker.com/docker-for-windows/install/`
You PC:
```shell
$ git clone git@github.com:zhan3333/nmpr.git
$ cd nmpr
$ cp .env.example .env
$ vim .env
---
# USER_NAME=zhan
# USER_PASSWORD=zhan
---
$ docker-compose up -d
```
OK! Now you can open `http://localhost`
## Add a virtual host
Docker nginx: add new vhost
```shell
$ cd /work/components/nginx/config/conf.d
$ cp localhost.conf you_vhost.conf
$ vim you_vhost.conf
```
You PC: reload nginx
```shell
$ docker exec nginx /etc/init.d/nginx reload
```
## Config file
- Work dir: `docker-compose.yml`
- MySQL: `./mysql/mysql.cnf`
- Nginx `./work/components/nginx/config/nginx.conf`
- PHP `./work/components/php/config/php.ini`
## Setting
### Use php command in system
## Want to help?
Author: `zhan`
Email to: `grianchan@gmail.com`