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

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.

主站蜘蛛池模板: 砀山县| 华容县| 麦盖提县| 黑龙江省| 新源县| 中山市| 霍山县| 英吉沙县| 云霄县| 绥滨县| 玛沁县| 鄂托克旗| 永登县| 广州市| 康保县| 凤山县| 石景山区| 公安县| 甘谷县| 怀集县| 崇义县| 本溪| 定州市| 西乌珠穆沁旗| 米泉市| 板桥市| 咸丰县| 麻江县| 彭州市| 历史| 鹤岗市| 文安县| 尚志市| 定日县| 林州市| 池州市| 贵南县| 开阳县| 岐山县| 溆浦县| 常熟市|