Container Service supports describing multi-container applications by using the Docker Compose orchestration template.
The orchestration template allows you to describe an integrated application. The application can be composed of several services. For example, a portal application is composed of an Nginx service, a Web service, and a database service.
A service might have several containers. Make sure all of the containers have the same configurations. For example, the Web service in the preceding application can start two or more containers based on the traffic.
Container Service supports automatically deploying and managing an application by using the orchestration template.
The labels used by the orchestration template are compatible with most of the labels in Docker Compose version 1 and version 2. For information about specific compatible labels, see Label description.
Container Service also provides many extension capabilities based on the community version:
- Unlike the community version of Docker Compose and Swarm, Alibaba Cloud Container Service supports cross-node container link. So you can directly deploy the application described by Docker Compose template to the distributed cluster to provide high availability and scalability.
- Container Service, based on the description in the Compose template of community version, also provides extensions to simplify the deployment, operation, and maintenance of Web and microservice applications. For details, see Label description.
The following is a WordPress application. It includes the Web service provided by WordPress image and the db service provided by MySQL image.