Adds log rotation for MON and POL in docker-compose.yaml
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>
diff --git a/installers/docker/docker-compose.yaml b/installers/docker/docker-compose.yaml
index b1f0cc8..61aeeee 100644
--- a/installers/docker/docker-compose.yaml
+++ b/installers/docker/docker-compose.yaml
@@ -141,6 +141,11 @@
- "${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 @@
#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: