Running the solution

docker-compose simplifies the process to run the whole stack. Our yaml file was configured and defined properly.

Let's start the solution. Run the following command:

docker-compose up -d

The command is pretty simple, the -d parameter instructs Docker to run the command in the background. As we did on the Docker run command.

The output of this command should be the following:

Take a look, docker-compose has created a network for our stack. In our case, the network driver is a bridge, after the network creation, the containers are started.

Get Spring 5.0 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.