Springboot Microservice In Docker With Postgres Database in Docker Containers

preview_player
Показать описание
In this video, we will run springboot microservice and postgres database both in separate docker containers and integrate Postgres database with a Spring Boot Microservice Application and perform different CRUD operations i.e., Create, Read, Update, and Delete operations on the Customer entity. Microservice application container will connect to database container using docker bridge network.

Spring Boot is built on the top of the spring and contains all the features of spring. And is becoming a favorite of developers these days because it’s a rapid production-ready environment that enables the developers to directly focus on the logic instead of struggling with the configuration and setup.

PostgreSQL or Postgres is the most commonly used open-source relational database. It offers features like robustness, reliability, cost-free, etc. PostgreSQL serves as a data warehouse for multiple applications like web apps, mobile apps, etc. It enables us to store enormous and sophisticated data securely. Memento Design pattern defines three roles for objects.

** Running Postgres database in Docker Container **
Containers offer easy app usage and scalability. Docker is a tool to create, deploy, and run applications using containers easily. A container is a standard unit of software that can be used to package applications and all the dependencies to a single package. These containers can be run on any server platform regardless of the underlying configuration or hardware structure. Docker can be used to run postgres database instances.

Docker image or containerization is the first step to take your application to cloud. The purpose of containerized application is to make sure your application is up and running always. Cloud platforms like AWS, AZURE or Google Cloud etc. provides container service to run docker image (containerized application). Containerization is a mechanism to minimized downtime of application and to automatically scale up or scale down as per our traffic conditions.

Benefits of containerized application is we can scale up or scale down the number of instances (pods) in few seconds. Containerized applications run in PODs (containers) that is virtualization of operating system running on physical servers. Cloud services like AWS, Azure, GCP etc. ensure that PODs are always running and automatically recover from error. If any POD (application container) goes down then container service brings it up automatically without impacting the user traffic and performance.

** TOPIC TO COVER **
1. Welcome to Spring Boot Microservice Project with Postgres DB in Docker
2. Download postgres database image from DockerHub
3. Run postgres database image in docker container
4. Connect DBeaver or pgadmin tool to postgres database in docker container
5. Create Schema and Table in postgres database
6. Insert Data in table
7. Create springboot microservice application
8. Add postgres database Maven Dependency in POM xml
9. Write controller business and repository layer classes
10. Prepare application properties file with database configuration
11. Create docker image of springboot microservice application
12. Find IP address of database docker container
13. Start springboot microservice in docker container
14. Test GET and POST end points in Postman tool
15. Validate Data is getting inserted in postgres database
16. Summary of video

#springbootmicroservice #postgres #dockercontainer
** CodeOneDigest GitHub Repository **

** Tools **

** CHECK OUT OUR OTHER VIDEOS **


** CHECK OUR PLAYLISTS **
Docker Containers Complete Tutorial

** ABOUT OUR CHANNEL **
CodeOneDigest is a youtube channel that produces videos on programming languages, cloud and container technologies, Software design principles, Java frameworks in English and Hindi languages.

Check out our channel here:
Don’t forget to subscribe!

** OUR WEBSITE **

** GET IN TOUCH **

FOLLOW US ON SOCIAL - LIKE, SHARE & SUBSCRIBE
Get updates or reach out to Get updates on our Social Media Profiles!
Рекомендации по теме
visit shbcf.ru