Docker compose
This is a study note from a tutorial video in YouTube: https://www.youtube.com/watch?v=fqMOX6JJhGo&t=4723s Docker compose is used to run several differences services in one .yml file. docker run WeibotopHistory docker run mariadb docker-compose.yml services: web: image: "WeibotopHistory" database: image: "mariadb" Use "docker-compose" command to bring up all the application stacks in yml files. docker-compose up How to compose yml files? To explain how to compose the yml files, we use the voting app example. The structure of voting app is like below: These connections between difference services can be described using "run --link" command like below: docker run -d --name=redis redis docker run -d --name=db postgres:9.4 docker run -d --name=vote -p 5000:80 --link redis:redis voting-app docker run -d -...