In this article we’ll focus on how to dockerize a Spring Boot Application to run it in a container. Furthermore I’ll show how to create a composition of containers, which depend on each other and are linked against each other in a virtual private network. We’ll also see how they can be managed together with single commands.
Let’s start by creating a Java-enabled, lightweight base image, running Alpine Linux.