Skip to content

Example of a Microservices application written in Java with Spring Boot

License

Notifications You must be signed in to change notification settings

onerbal/spring-boot-microservice-demo

Repository files navigation

spring-boot-microservice-demo

Example of a Microservices application written in Java with Spring Boot

To run this project

$ docker build --tag=alpine-jdk:base --rm=true .

Create volumes:

docker volume create --name=mysql-data
docker volume create --name=config-repo
mvn clean package -DskipTests
docker-compose up --build

To access Eureka Server, go to url: http://localhost:9091/

In order to access to UI, go to url: http://localhost:8081/

  • MySQL container:
    • hostname: mysql-machine
    • Ports : 6603:3306 (<host_port>:<container_port>)
    • Username/Password: root/mypassword
  • config-server:
  • service-discovery:

License

MIT