分享基于Docker的Node.js开发环境


!(https://github.com/huangyanxio ... r.jpeg)

Software Stack

  • MongoDB
  • Redis
  • MySQL
  • Node.js 7.x
  • Nginx(Power By Openresty)


How to use it?

>If live behind the (https://zh.wikipedia.org/zh-ha ... F%258E) please read this post (http://www.myfreax.com/use-ali ... ocker/)

Requirements



Setup

```bash
git clone https://github.com/huangyanxio ... s.git

cd docker-node.js

yarn install

docker-compose up -d
```

Now,you can open http://127.0.0.1:3000/ in browser

Configure

You can find the custom $software configuration file in ./docker/$software/etc/

Data

You can find the $software data file in ./docker/$software/Data/

TODO

  • Build the nginx image with the lua module
  • Optimize the configuration file
  • Write usage documentation
  • Test on Windows


Why do need Lua module?
> The nginx configuration file uses environment variables

Goal

Build a reusable environment, whether it is a production environment or a development environment

Other

docker pull huangyanxiong2012/docker-node.js

Note

>If Ubuntu official source is too slow,You can add command in Dockerfile

FROM ubuntu:16.04
COPY ./sources.list /etc/apt/sources.list
已邀请:

Freax

赞同来自:


这网站的Markdown好难写

要回复问题请先登录注册