Once we have built our images, we can start the application using Docker Compose:
$ docker-compose up
The output will show us the application starting. We should see the following:
In this first part of the output, we see how Docker Compose does the following:
- Creates a bridge network called ch11_default
- Creates a volume called ch11_pets-data
- Creates the two services, ch11_web_1 and ch11_db_1, and attaches them to the network
Docker Compose then also shows log output generated by the database (blue) and by the web service (yellow) that are both stating up. ...