From: Benjamin Diaz Date: Wed, 27 Feb 2019 17:01:38 +0000 (-0300) Subject: Adds log rotation for MON and POL in docker-compose.yaml X-Git-Tag: v6.0.0~25 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F72%2F7272%2F4;p=osm%2Fdevops.git 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 --- diff --git a/installers/docker/docker-compose.yaml b/installers/docker/docker-compose.yaml index b1f0cc8c..61aeeeed 100644 --- a/installers/docker/docker-compose.yaml +++ b/installers/docker/docker-compose.yaml @@ -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: