Giter Site home page Giter Site logo

babai-abhishek / docker-containerized-spring-boot-application Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 164 KB

Dockerfile 2.89% Java 97.11%
docker-compose dockerfile java jpa-hibernate kafka kafka-consumer kafka-producer microservices-architecture mysql spring-boot

docker-containerized-spring-boot-application's Introduction

POS (Point of sale)

Designed and developed a simple micro-service based POS application using spring boot framework with JPA and Kafka for message queue processing and MySQL for database storage. There are three micro-services - customer, sales and inventory. Customer micro-service is for registering new customer and their total sale. Inventory micro-service is for inventory management of products. Sales micro-service is for processing of order made by the customers. Synchronization between the micro-services are done using Kafka.

Run application using docker

Step 1: run the docker-compose file and run -

  docker compose -f .\pos-docker-compose.yml up

Step 2: go to every module and run -

  docker build . -t customer:v1
  docker build . -t sales:v1
  docker build . -t inventory:v1

Step 3: run the images -

  docker run -p 9081:9081 -e DB_URL='con-db-cust:3306' KAFKA_CONSUMER_SERVER_URL='kafka:9092' customer:v1
  docker run -p 9082:9082 -e DB_URL='con-db-sales:3306' KAFKA_CONSUMER_SERVER_URL='kafka:9092' sales:v1
  docker run -p 9083:9083 -e DB_URL='con-db-inventory:3306' KAFKA_CONSUMER_SERVER_URL='kafka:9092' inventory:v1

NOTE: Please check for network if all containers in the same network, if not bring them on same

docker-containerized-spring-boot-application's People

Contributors

babai-abhishek avatar

Watchers

 avatar  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.