浏览代码

添加日志滚动配置

dongzhaorui 1 年之前
父节点
当前提交
390591793e
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      ybw/docker-compose.yml

+ 5 - 0
ybw/docker-compose.yml

@@ -10,6 +10,11 @@ services:
     restart: always
     restart: always
     privileged: true
     privileged: true
     shm_size: '4gb'
     shm_size: '4gb'
+    logging:
+      driver: "json-file"
+      options:
+        max-size: "200k"
+        max-file: "10"
     tmpfs:
     tmpfs:
       - /tmp
       - /tmp
     deploy:
     deploy: