View Code? Open in Web Editor
NEW
This project forked from selesabraham/dockerdemomicroservices
dockerising a microservice application
Dockerfile 5.31%
JavaScript 66.70%
HTML 27.99%
dockerdemomicroservices's Introduction
Building Microservices with Node, Docker and Nginx
- What is a Microservice
- How do we make one?
- How do we make them work together?
Dockerising a microservice architecture:
- We will create four different microservices, called books, videos, search and web
- The services are built in node.js
- The entire project uses nginx server as a reverse HTTP proxy, so the microservices can talk to each other.
- Each of these services will be deployed to a different docker container.
- All of the services will finally talk to each other by means of docker-compose.yml.
Steps to deploy the microservice code:
- Download the code from the below mentioned GitHub repository.
- Open the docker terminal, and navigate to each microservice individually.
Run the docker image build command.
- Repeat the above steps for each microservice.
- Navigate to the path of ‘docker-compose.yml’ and run ‘Docker-compose -up’
- The above command will start all the containers after which they can talk to each other.
- Verify the application by visiting; localhost:8080.
dockerdemomicroservices's People
Contributors
Watchers