November 2017
Intermediate to advanced
298 pages
7h 10m
English
With the three relevant containers made, we can now launch them. Some care needs to be taken that they are launched in order as our application tries to read the data from the database as soon as it is started and we don't want the web server up if the application isn't there, so we will launch them in this order: database -> application_server -> web_server:
$ docker run --rm \ -d \ -p 27000:27017 \ database3baec5d1ceb6ec277a87c46bcf32f3600084ca47e0edf26209ca94c974694009$ docker run --rm \ -d \ -e DB_HOST=172.17.0.1:27000 \ -p 8000:8000 \ application_serverdad98a02ab6fff63a2f4096f4e285f350f084b844ddb5d10ea3c8f5b7d1cb24b$ docker run --rm \ -d \ -p 8080:80 \ web_server3ba3d1c2a25f26273592a9446fc6ee2a876904d0773aea295a06ed3d664eca5d ...
Read now
Unlock full access