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

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.

主站蜘蛛池模板: 潞城市| 馆陶县| 田东县| 客服| 洛浦县| 曲松县| 大埔县| 灌南县| 灵丘县| 忻州市| 施甸县| 泾川县| 九寨沟县| 加查县| 四平市| 长泰县| 林州市| 临清市| 旺苍县| 双城市| 云南省| 文山县| 永登县| 正蓝旗| 绥棱县| 霸州市| 兰坪| 盐山县| 勃利县| 阳信县| 溧水县| 江西省| 孟州市| 海南省| 新干县| 蕲春县| 利辛县| 黄石市| 霞浦县| 三明市| 林口县|