Adds log rotation for MON and POL in docker-compose.yaml 72/7272/4
authorBenjamin Diaz <bdiaz@whitestack.com>
Wed, 27 Feb 2019 17:01:38 +0000 (14:01 -0300)
committerdiazb <bdiaz@whitestack.com>
Wed, 10 Apr 2019 17:01:53 +0000 (18:01 +0100)
Sets maximum number of log files to 5 per module, with max size 10MB each.

Change-Id: I6cd23ea0f3e785ed31813355b9ef5f3f3f1b1410
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
installers/docker/docker-compose.yaml

index b1f0cc8..61aeeee 100644 (file)
@@ -141,6 +141,11 @@ services:
       - "${OSM_MON_PORTS:-8662:8662}"
     #depends_on:
     #  - kafka
+    logging:
+        driver: "json-file"
+        options:
+            max-file: 5
+            max-size: 10m
   pol:
     image: ${DOCKER_USER:-opensourcemano}/pol:${TAG:-latest}
     networks:
@@ -155,6 +160,11 @@ services:
     #depends_on:
     #  - kafka
     #  - mon
+    logging:
+      driver: "json-file"
+      options:
+        max-file: 5
+        max-size: 10m
   light-ui:
     image: ${DOCKER_USER:-opensourcemano}/light-ui:${TAG:-latest}
     networks: