Docker Compose Support in Spring Boot 3.1
Docker Compose support in Spring Boot 3.1 builds on top of the
ConnectionDetails
abstraction, which we've featured in a separate blog post. If you haven't already read it, please do so before reading this post.
Docker Compose "is a tool for defining and running multi-container Docker applications".
A Docker Compose configuration file, usually named docker-compose.yaml
or compose.yaml
, allows you to define services.
Such services must have a name and a Docker image.
Optionally you can also define environment variables, exposed ports, labels, how services relate to one another, and so on.
Here…