Session 3.4: Docker compose, and play with Docker
You can clone the related code from this GitHub branch
$ git clone https://github.com/M-Gharib/ESI-W3-DockerCompose.git
Docker Compose
Docker Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.
The key features of Compose that make it effective are:
- Have multiple isolated environments on a single host
- Preserves volume data when containers are created
- Only recreate containers that have changed
- Supports variables and moving a composition between environments
1. Creating a Docker Compose File (YAML) for a Spring Boot Project and PostgreSQL