Git Product home page Git Product logo

docker-node-mongo-starter's Introduction

docker-node-mongo-starter

  • A simple boilerplate to get started with docker, docker-compose, nodejs and mongo
  • Exposes node on port 3000, mongo on port 27017
  • Restarts the app inside the container in case of file change or a new npm module is installed

Getting started

  • Startup: docker-compose up
  • Connect to mongo mongo starter-db
  • Post an object to mongo : curl -X POST localhost:3000/api/v1/dog
  • Get all objects from mongo : curl localhost:3000/api/v1/dogs
  • Connect to container running nodejs : docker exec -it dockernodemongostarter_web_1 bash
  • Connect to container running mongo : docker exec -it dockernodemongostarter_db_1 bash

docker-node-mongo-starter's People

Contributors

vkomulai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

docker-node-mongo-starter's Issues

an error is coming

Here is detail. Can you help ?

sudo docker-compose up -d
docker-node-mongo-starter_db_1_15366f43c986 is up-to-date
Starting docker-node-mongo-starter_web_1_2610011d4838 ... error

ERROR: for docker-node-mongo-starter_web_1_2610011d4838  Cannot start service web: b'OCI runtime create failed: container_linux.go:346: starting container process caused "exec: \\"node_modules/.bin/nodemon\\": stat node_modules/.bin/nodemon: no such file or directory": unknown'

ERROR: for web  Cannot start service web: b'OCI runtime create failed: container_linux.go:346: starting container process caused "exec: \\"node_modules/.bin/nodemon\\": stat node_modules/.bin/nodemon: no such file or directory": unknown'
ERROR: Encountered errors while bringing up the project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.