Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

zhan3333/nmpr

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

$ 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

$ cd /work/components/nginx/config/conf.d
$ cp localhost.conf you_vhost.conf
$ vim you_vhost.conf

You PC: reload nginx

$ 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

About

Docker 快速运行起 LNMP 运行环境 / Quickly run thr MySQL + PHP + Nginx + Redis environment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.