July 2019
Intermediate to advanced
416 pages
10h 6m
English
Rather than running up our images using docker build and docker run, we have something called docker-compose to compose and run multiple containers. With Docker composition, we can create our containers from multiple docker files or entirely through a file called docker-compose.yml.
We are going to use a combination of docker-compose.yml and the Docker files that we created in the previous section to create a composition that we can easily run up. In the root of the server code, create a blank file called docker-compose.yml. We are going to start off by specifying the compose format that the file conforms to. In our case, we are going to set it to 2.1:
version: '2.1'
We are going to ...
Read now
Unlock full access