Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bezkoder/docker-compose-nodejs-mongodb
Docker Compose Nodejs Express and MongoDB example
https://github.com/bezkoder/docker-compose-nodejs-mongodb
docker docker-compose express express-js expressjs mongo mongodb node nodejs rest-api
Last synced: about 13 hours ago
JSON representation
Docker Compose Nodejs Express and MongoDB example
- Host: GitHub
- URL: https://github.com/bezkoder/docker-compose-nodejs-mongodb
- Owner: bezkoder
- Created: 2021-08-26T03:58:48.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-14T08:49:01.000Z (about 1 year ago)
- Last Synced: 2024-10-29T23:14:52.419Z (14 days ago)
- Topics: docker, docker-compose, express, express-js, expressjs, mongo, mongodb, node, nodejs, rest-api
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 66
- Watchers: 3
- Forks: 56
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Compose Nodejs and MongoDB example
## Run the System
We can easily run the whole with only a single command:
```bash
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:
```bash
docker compose up -d
```## Stop the System
Stopping all the running containers is also simple with a single command:
```bash
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:
```bash
docker compose down --rmi all
```For more detail, please visit:
> [Docker Compose Node.js Express and MongoDB example](https://www.bezkoder.com/docker-compose-nodejs-mongodb/)Related Posts:
> [Node.js, Express & MongoDb: Build a CRUD Rest Api example](https://bezkoder.com/node-express-mongodb-crud-rest-api/)> [Server side Pagination in Node.js with MongoDB and Mongoose](https://bezkoder.com/node-js-mongodb-pagination/)
Security:
> [Node.js + MongoDB: User Authentication & Authorization with JWT](https://bezkoder.com/node-js-mongodb-auth-jwt/)Associations:
> [MongoDB One-to-One relationship tutorial with Mongoose examples](https://bezkoder.com/mongoose-one-to-one-relationship-example/)> [MongoDB One-to-Many Relationship tutorial with Mongoose examples](https://bezkoder.com/mongoose-one-to-many-relationship/)
> [MongoDB Many-to-Many Relationship with Mongoose examples](https://bezkoder.com/mongodb-many-to-many-mongoose/)