This project demonstrates how to create a microservices architecture with Spring Boot and Spring Cloud. It also shows how to package each application in Docker containers and run them with Docker Compose.
Prerequisites:
To install this example application, run the following commands:
git clone https://github.com/ksloo1788/spring-boot-3-microservices-with-docker.git
cd spring-boot-3-microservices-with-docker
Run the following command from the root folder to create Docker containers to build Java libraries for all Spring Boot Applications.
./mvnw clean install
Then you can start your microservices architecture using Docker Compose:
docker-compose up --force-recreate --build -d
Last but not least, you can remove all dangling images:
docker image prune -f
TIP:
After everything starts, you should be able to check Eureka Service Registry at http://localhost:8010
.
This project uses the following open source projects:
Please post any questions as comments on this repository or email us.
GNU General Public License v3.0, see LICENSE.