GithubHelp home page GithubHelp logo

nodejs-mongo-docker-compose's Introduction

// with docker-compose.yaml file docker compose build docker compose up docker ps // show all containers docker ps -a docker rm containerid docker compose down mongo --port 2717 https://youtu.be/vm3YfOHf_Cc

// without docker-compose.yaml file docker login bharathpersonal7898 docker build . -t bharathpersonal7898/reponame So if we wanted to expose port 3000 inside the container to port 49160 outside the container, we would pass 49160:3000 to the --publish flag. docker run -p 49160:3000 -d bharathpersonal7898/reponame In browser hit this url http://localhost:49160/products docker exec -it d7629a08004cc3276545998e1f39fd8629112fc58e608c8943268890a63358b0 /bin/bash docker logs d7629a08004cc3276545998e1f39fd8629112fc58e608c8943268890a63358b0 docker ps -a docker stop d7629a08004c docker images docker push bharathpersonal7898/reponame https://nodejs.org/en/docs/guides/nodejs-docker-webapp/

docker pull mongo:latest docker run -d -p 2717:27017 -v ~/newdir:/data/db --name mymongoconatinername mongo:latest docker exec -it mymongoconatinername bash now we can do mongo inside our system mongo localhost:2717

docker volume ls docker-compose down --volume docker stop containerid

nodejs-mongo-docker-compose's People

Watchers

Bharath B avatar

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.