项目作者: bezkoder

项目描述 :
Docker Compose Nodejs Express and MongoDB example
高级语言: JavaScript
项目地址: git://github.com/bezkoder/docker-compose-nodejs-mongodb.git
创建时间: 2021-08-26T03:58:48Z
项目社区:https://github.com/bezkoder/docker-compose-nodejs-mongodb

开源协议:

下载


Docker Compose Nodejs and MongoDB example

Run the System

We can easily run the whole with only a single command:

  1. docker compose up

Docker will pull the MongoDB and Node.js images (if our machine does not have it before).

The services can be run on the background with command:

  1. docker compose up -d

Stop the System

Stopping all the running containers is also simple with a single command:

  1. docker compose down

If you need to stop and remove all containers, networks, and all images used by any service in docker-compose.yml file, use the command:

  1. docker compose down --rmi all

For more detail, please visit:

Docker Compose Node.js Express and MongoDB example

Related Posts:

Node.js, Express & MongoDb: Build a CRUD Rest Api example

Server side Pagination in Node.js with MongoDB and Mongoose

Security:

Node.js + MongoDB: User Authentication & Authorization with JWT

Associations:

MongoDB One-to-One relationship tutorial with Mongoose examples

MongoDB One-to-Many Relationship tutorial with Mongoose examples

MongoDB Many-to-Many Relationship with Mongoose examples