Skip to content

vaquarkhan/spring-boot-microservices-mysql

 
 

Repository files navigation

spring-boot-microservices-series

Code for SpringBoot MicroServices Blog Series

How to run?

Build all modules:

spring-boot-microservices-series> ./mvnw clean package -DskipTests=true

Start infrastructure modules in docker:

spring-boot-microservices-series> docker-compose up -d mysqldb rabbitmq setup-vault config-server service-registry hystrix-dashboard

Start each microservice either in local or in docker:

Local: spring-boot-microservices-series/catalog-service> ./mvnw spring-boot:run

Docker: spring-boot-microservices-series> docker-compose up -d <service> --build --force-recreate

Ex: spring-boot-microservices-series> docker-compose up -d catalog-service --build --force-recreate

or

docker-compose up -d

  • MySQL container:

    • hostname: mysqldb
    • Ports : 3306:3306 (<host_port>:<container_port>)
    • Username/Password: root/admin
  • RabbitMQ:

    • hostname: rabbitmq
    • Ports: 5672:5672, 15672:15672
    • Admin UI: http://localhost:15672
    • Username/password: guest/guest
  • Vault:

    • hostname: vault
    • Ports: 8200:8200
    • Root token: 934f9eae-31ff-a8ef-e1ca-4bea9e07aa09
  • config-server:

  • service-registry:

  • hystrix-dashboard:

  • catalog-service:

  • inventory-service

  • order-service

  • shoppingcart-ui

About

Code for SpringBoot MicroServices Blog Series

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 74.3%
  • HTML 12.6%
  • Dockerfile 7.0%
  • JavaScript 5.5%
  • Shell 0.6%