Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 days ago
JSON representation
node docker demo
- Host: GitHub
- URL: https://github.com/pplgin/docker-node
- Owner: pplgin
- License: mit
- Created: 2018-12-14T06:51:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-27T21:10:30.000Z (over 1 year ago)
- Last Synced: 2023-03-02T20:21:20.334Z (over 1 year ago)
- Topics: docker, docker-node, koa-router, koa2, mongodb, node, nunjucks
- Language: JavaScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```