创建compose编排
最近更新时间: 2019-11-02 12:31:13
POST /v2/composes/{projectName}
请求body
{
"stackInstanceName": "compose",
"content": "c1:\n image: docker.oa.com:8080/public/helloworld\n replicas: 2\n mem_limit: 256m\n cpu_shares: 1\n environment:\n CONTAINER_NAME: c1\n app_NAME: app-c1\n links:\n - c2\n - c3\nc2:\n image: docker.oa.com:8080/public/helloworld\n replicas: 1\n mem_limit: 256m\n cpu_shares: 1\n environment:\n CONTAINER_NAME: c2\n app_NAME: app-c2\nc3:\n image: docker.oa.com:8080/public/helloworld\n replicas: 3\n mem_limit: 128m\n cpu_shares: 1\n environment:\n CONTAINER_NAME: c3\n app_NAME: app-c3\n"
}
返回
{
"Code": 0,
"Message": ""
}