Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pplgin/docker-node

node docker demo
https://github.com/pplgin/docker-node

docker docker-node koa-router koa2 mongodb node nunjucks

Last synced: about 1 month ago
JSON representation

node docker demo

Awesome Lists containing this project

README

        

## docker compsoe node 实例

> node docker demo
> >
>### 环境依赖

- docker
- docker-compose
- node > 9

### 运行启动

```
// 镜像名称
docker build -t [imagename] .

docker-compose up
```

### 运行测试

```
// 访问
curl -X POST -H "Content-Type: application/json" http://0.0.0.0:6000/napi/login/register -d "{\"name\":\"pplgin\",\"pwd\":\"123\"}"

// 进入容器
docker-compose exec -it mongo([web]) /bin/sh
```