![]() Therefore we need to create following containers in the process of migrating this application for the docker platform. If you have gone through the above reference article ( Simple CRUD Application with Spring Boot and Spring Data JPA), the application has following components and dependencies. Starting to migrate the application to use Docker The fully docker migrated source code( the outcome of this article) can be found at GitHub. As i have already mentioned, we will be adding some docker related configurations to use docker for building and running this application. The initial source code of this article can be found at the article of Simple CRUD Application with Spring Boot and Spring Data JPA . That is “ without docker-compose approach” ![]() In this article we will be focusing on the second approach. manually managing and running the dependencies and link them ( without docker-compose).Using docker-compose for managing and running dependencies (servers) and link them.There are two main ways that can be used to build and run applications with docker. If you want to learn them, please refer my blog article of Simple CRUD Application with Spring Boot and Spring Data JPA. ![]() ![]() Since the purpose of this article is to demonstrate the features and capabilities of the Docker, i am not going to explain the Spring Data JPA related code here. So in this article, we will try to use docker based mysql container for replacing the traditional MySQL server (The MySQL server that is run as a external sever). The existing application is a Spring Boot REST Api application that uses Spring Data JPA for persistent layer and MySQL as the database server. Here we will be migrating an existing application to use docker based containers instead of traditional pre installed servers. So if you are new to docker, please read the following article, before continuing with this article.Ĭlick here to go to the article of “What is Docker and Its Overview” The basic introduction and overview of the docker can be found at following blog article. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |