Git Product home page Git Product logo

dockerdemomicroservices's Introduction

DockerDemoMicroservices

Building Microservices with Node, Docker and Nginx

  1. What is a Microservice
  2. How do we make one?
  3. How do we make them work together?

Dockerising a microservice architecture:

  1. We will create four different microservices, called books, videos, search and web
  2. The services are built in node.js
  3. The entire project uses nginx server as a reverse HTTP proxy, so the microservices can talk to each other.
  4. Each of these services will be deployed to a different docker container.
  5. All of the services will finally talk to each other by means of docker-compose.yml.

Steps to deploy the microservice code:

  1. Download the code from the below mentioned GitHub repository.
  2. Open the docker terminal, and navigate to each microservice individually. Run the docker image build command.
  3. Repeat the above steps for each microservice.
  4. Navigate to the path of ‘docker-compose.yml’ and run ‘Docker-compose -up’
  5. The above command will start all the containers after which they can talk to each other.
  6. Verify the application by visiting; localhost:8080.

dockerdemomicroservices's People

Contributors

bhavanatiwari avatar

Watchers

James Cloos 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.