https://github.com/thundernet8/dockerized-node-balance
使用Docker和docker-compose快速部署Node APP以及实现Nginx负载均衡
https://github.com/thundernet8/dockerized-node-balance
Last synced: 3 months ago
JSON representation
使用Docker和docker-compose快速部署Node APP以及实现Nginx负载均衡
- Host: GitHub
- URL: https://github.com/thundernet8/dockerized-node-balance
- Owner: thundernet8
- License: mit
- Created: 2017-03-27T13:33:22.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-30T04:01:14.000Z (about 9 years ago)
- Last Synced: 2025-11-28T13:29:21.483Z (7 months ago)
- Language: Nginx
- Size: 6.84 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Dockerized-Node-Balance
使用Docker和docker-compose快速部署Node APP以及实现Nginx负载均衡。
Nginx代理用户请求并分配转发至指定Node Server。
同时示例了Node App link位于不同容器的MongoDB和Redis服务。
开发环境可使用nodemon监听文件修改以重启Node服务器(需要为nodeapp容器设置volumes,方便在宿主机修改文件)
## 使用
```
初次
docker-compose build
docker-compose up -d
后续
docker-compose start
docker-compose stop
```