docker build -t ddtramdocker/nodemongo:1.0.0 .
docker run --name nodemongo -p 8000:3000 -v /Users/jackwang/Documents/Dev/nodejs/nodeMongodDocker/src:/usr/src/app -v /Users/jackwang/Documents/Dev/nodejs/nodeMongodDocker/package.json:/usr/src/app/package.json -v /Users/jackwang/Documents/Dev/nodejs/nodeMongodDocker/node_modules:/usr/src/app/node_modules --env app_env=dev --env mongodb_container_name=mongodb_mongo_1 --network=mongodb_default -d 0aca605b75d1
Enter mongodb
docker exec -ti nodemongo /bin/bash
-
Logger sys /lib/logger.js
-
Health Check /lib/status.js
-
Horizontal Scaling pm2
-
Horizontal Scaling
-
http
-
path
-
koa-session2 session
-
koa2-cors Access-Control-Allow-Origin
-
mogodb instrument、 Mongodb native driver
-
fs file, [buildin]
-
crypto-js encrypt string
-
pm2 cluster、Operation and maintenance
-
isredis redis client
-
uid-safe uuid
-
pug html template
-
winston logger
by jack