How to Manage Profiles in Spring Boot (with Docker)?

Spring Boot allows you to use profiles to separate configurations by environment, such as development (dev), staging (staging), and production (prod). This makes it easier to manage settings like database URLs, feature flags, and other environment-specific behaviors. In this post, you’ll learn how to: 📁 File Structure 🔧 Configuration Files 🔧 application.properties (common) 🔧 application-dev.properties…

Read More
Docker

Docker: Essential Commands Every Developer Should Know

Docker has revolutionized the way developers package, distribute, and run applications. With it, you can create portable and standardized environments with incredible ease. To make the most of this powerful tool, it’s essential to master some basic commands that are part of daily work with containers, images, and networks. In this post, we’ll explore the…

Read More

How to start Kafka using Docker?

It’s possible to use Kafka on various operating systems, but here we’ll use Docker on Ubuntu Linux. We need Docker Desktop installed in order to proceed. You can follow this tutorial to install it:👉 tutorial . Go to Docker Hub and in the search bar, look for “apache kafka”. This will allow us to download…

Read More
Docker

How does Poor Man’s Load Balancer work?

Understanding the concept of Poor Man’s Load Balancer is an interesting and educational approach, especially for grasping the fundamentals of horizontal scalability using containers and load balancing. Horizontal scalability allows multiple container instances, and requests will be distributed by the Load Balancer. This model is widely used in high-demand environments. Benefits: Problems and Solutions: How…

Read More
Docker

What is Docker Compose and how to use?

Docker Compose is a tool that allows you to define and manage multi-container applications for Docker using a single YML file (docker-compose.yml). With it, you can configure services, networks, and volumes in a readable and reproducible format. It is ideal for managing complex environments where multiple services (such as a database, cache, and backend) need…

Read More
Docker

How to create a Docker Image using maven?

Creating Docker images using Maven is essential to integrate the containerization process directly into the application’s build and deployment pipeline, offering significant benefits for developers and DevOps teams. Let’s see how to create a Docker image with Maven in Spring. This post is a continuation of the previous one; if you have any questions, feel…

Read More
Docker

How to build application image with Dockerfile?

Since this is a Java application, I need to use an image that can run a Java application. We need the Dockerfile and to use the OpenJDK base image. This Dockerfile is a recipe for building a Docker image that runs a Java application. Each instruction in the Dockerfile has a specific purpose. Let’s go…

Read More