The Container Service supports the Docker Compose orchestration template to describe multi-container applications.
The orchestration template allows the description an integrated application that can be composed of several services. For example, a portal application can comprise of a Nginx service, a Web service and a database service.
One service may have several container instances and the configurations of all the container instances have to be consistent. For example, the Web service in the above application can activate two or more containers based on the traffic.
The Container Service supports automatic deployment and management of a container application using the orchestration template file.
The labels used by the orchestration template file are compatible with most of the labels described in Docker Compose version 1.5x to 1.7x. For information about specific compatible labels, refer to Label description.
The orchestration template file also supports the version 1 and version 2 Compose file formats. For details, refer to Compose file format versioning.
The Container Service also provides many scale capabilities beyond the community version:
- Unlike the community versions of Docker Compose and Swarm, Alibaba Cloud Container Service supports cross-node container link, and thus you can directly deploy the application described by Docker Compose to the distributed cluster to provide high availability and scalability.
- The Container Service, based on the description in the community Compose template, also provides capabilities to simplify the deployment, maintenance and operations of Web and microservice applications. For details, refer to 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.