官术网_书友最值得收藏!

What is Docker compose?

Docker compose is a tool for defining and running multi-container Docker applications. One will require to create a Compose file  to configure the application's services. The following steps are required to be taken in order to work with Docker compose:

  • Define the application’s environment with a Dockerfile so it can be reproduced anywhere.
  • Define the services that make up the application in docker-compose.yml so they can be run together in an isolated environment.
  • Lastly, run docker-compose, and Compose will start and run the entire application.

As we are going to set up a multi-container application using Tomcat and MySQL as different containers, we will use Docker compose to configure both of them, and then, assemble the application.

主站蜘蛛池模板: 长乐市| 昌宁县| 临澧县| 扬中市| 都江堰市| 林甸县| 桑植县| 杂多县| 北安市| 马山县| 镶黄旗| 钟山县| 水城县| 山阳县| 鄂伦春自治旗| 沁源县| 化州市| 德格县| 南川市| 鹤庆县| 个旧市| 甘泉县| 类乌齐县| 隆德县| 庆阳市| 清远市| 怀集县| 九江市| 和龙市| 巍山| 民勤县| 滨海县| 大同县| 淳化县| 和林格尔县| 梨树县| 玉门市| 香港| 阿荣旗| 正镶白旗| 台北市|