和阿里云日志服务集成,采集容器日志并且发送到阿里云日志服务。

示例

mysql:
    image: mysql
    ports:
        - 80
    labels:
        aliyun.scale: "1"
    environment:
        - MYSQL_ROOT_PASSWORD=password
wordpress:
    image: registry.aliyuncs.com/jiangjizhong/wordpress
    ports:
        - 80
    labels:
        aliyun.routing.port_80: wordpress-with-log
        aliyun.log_store_dbstdout: stdout   #注意这里
    links:
        - mysql

更多详细信息,参见集成日志服务