January 2019
Intermediate to advanced
484 pages
11h 48m
English
As Docker compose is the same as Docker in many aspects, it's more efficient to understand how to write docker-compose.yml with examples than start from docker-compose syntax. Let's now go back to the kiosk-example we looked at earlier and start with a version definition and four services:
version: '3'services: kiosk-example: recorder-example: lcredis: lmysql:
The docker run arguments for kiosk-example are pretty simple. They include a publishing port and an environment variable. On the Docker compose side, we fill the source image, the publishing port, and environment variables accordingly. Because Docker compose is able to handle docker build, it can build images if those images can't be found locally. We want to use ...
Read now
Unlock full access