容器服务自定义负载均衡支持多个证书
本示例使用的镜像是acs/proxy镜像
lb:
image: registry.aliyuncs.com/acs/proxy:0.5
ports:
- '80:80'
- '443:443' # https 必须暴露这个端口
restart: always
labels:
# addon 使得proxy镜像有订阅注册中心的能力,动态加载服务的路由
aliyun.custom_addon: "proxy"
# 每台vm 部署一个该镜像的容器
aliyun.global: "true"
# 前端绑定SLB
aliyun.lb.port_80: tcp