About the application
In this demo project I've create 2 microservices with spring-boot .. one of them talks rest and the other talks grpc with protobuf as main data format between the 2 microservices.
Each microservice has a basic docker file to be built and deployed easily as a docker container .. also the whole project can be deployed using docker-compose to be the management of the application easier.
To open in intelij:
- Import maven project
- Go to settings and install lombok plugin
- Enable annotation processing
To run using docker-compose
cd /path/to/dockerized-microservices/
- Run
docker-compose up
- Go to
http://localhost/health
- Go to
http://localhost/passwords?q=123
To rebuild using docker-compose
cd /path/to/dockerized-microservices/
- Run
docker-compose build
To stop container without cleaning up containers
cd /path/to/dockerized-microservices/
- Run
docker-compose stop
To stop container and cleaning up containers
cd /path/to/dockerized-microservices/
- Run
docker-compose down
This is to run locally .. you can also run it on a docker swarm cluster or Kubernetes .. please check the articles on my blog.
Important Note
You can read about this on my blog to understand the purpose of the demo and get some quick knowledge of the technologies used. here.