November 2017
Intermediate to advanced
298 pages
7h 10m
English
So, we have our web_server, application_server, and database containers all figured out. Let's verify that you have all the files matching these before moving on:
$ tree ..├── application_server│ ├── Dockerfile│ ├── index.js│ ├── package.json│ └── views│ └── index.pug├── database│ └── Dockerfile└── web_server ├── Dockerfile └── nginx_main_site.conf4 directories, 7 files
The next step for us is to build all the containers:
$ # Build the app server image $ cd application_server $ docker build -t application_server . Sending build context to Docker daemon 34.3kB Step 1/10 : FROM node:8 <snip> Successfully built f04778cb3778 Successfully tagged application_server:latest $ # Build the database image $ cd ../database
Read now
Unlock full access