Commit be32171e authored by Kostis Trantzas's avatar Kostis Trantzas
Browse files

Updated docker-compose.yaml.configure services to add log rotation

parent 1e491e6f
Loading
Loading
Loading
Loading
Loading
+73 −29
Original line number Diff line number Diff line
version: '3.4'
services:

  artemis:
@@ -10,6 +9,11 @@ services:
    - 8161:8161
    - 61616:61616
    - 61613:61613
    logging:
      driver: "json-file"
      options:
        max-size: "100m"
        max-file: "3"    
    volumes:
    -  /var/log/activemq:/var/log/activemq
    networks:
@@ -23,6 +27,11 @@ services:
    ports:
    - 80:80
    - 443:443
    logging:
      driver: "json-file"
      options:
        max-size: "500m"
        max-file: "3"
    volumes:
    - ./nginx/nginx.conf:/etc/nginx/nginx.conf
    - ./nginx/certificates:/etc/nginx/certificates
@@ -44,6 +53,11 @@ services:
      MYSQL_ROOT_HOST: "%"
    ports:
    -  "13306:3306"
    logging:
      driver: "json-file"
      options:
        max-size: "200m"
        max-file: "2"    
    volumes:
    -  ~/mysql/data:/var/lib/mysql
    - ./mysql-init:/docker-entrypoint-initdb.d
@@ -69,6 +83,11 @@ services:
      PROXY_ADDRESS_FORWARDING: "true"
    volumes:
    - ./keycloak-init:/tmp
    logging:
      driver: "json-file"
      options:
        max-size: "200m"
        max-file: "5"    
    ports:
      - 8080:8080
      - 8443:8443
@@ -114,7 +133,7 @@ services:
    logging:
      driver: "json-file"
      options:
        max-size: "1g"
        max-size: "750m"
        max-file: "3"
    volumes:
    - ./repo:/root
@@ -145,7 +164,7 @@ services:
    logging:
      driver: "json-file"
      options:
        max-size: "1g"
        max-size: "800m"
        max-file: "3"      
    ports:
    - 13011:13011
@@ -170,6 +189,11 @@ services:
        "bugzillakey":"",
        "main_operations_product":""
        }'
    logging:
      driver: "json-file"
      options:
        max-size: "200m"
        max-file: "3"    
    ports:
    - 13010:13010
    networks:
@@ -244,6 +268,11 @@ services:
        "logging.level.org.springframework" : "INFO",
        "logging.level.org.etsi.osl.osom" : "INFO"
        }'
    logging:
      driver: "json-file"
      options:
        max-size: "1g"
        max-file: "3"    
    ports:
    - 13100:13100
    networks:
@@ -400,6 +429,11 @@ services:
    profiles: ["dev", "prod"]
    networks:
      - front
    logging:
      driver: "json-file"
      options:
        max-size: "100m"
        max-file: "3"    
    ports:
    - 9000:9000
    volumes:
@@ -422,6 +456,11 @@ services:
        "centrallogurl":"http://elk_ip:elk_port/index_name/_doc",
        "logging.level.org.springframework" : "INFO"
        }'
    logging:
      driver: "json-file"
      options:
        max-size: "800m"
        max-file: "3"    
    ports:
    - 13013:13013
    networks:
@@ -436,6 +475,11 @@ services:
      - blockdiag
    environment:
      - KROKI_BLOCKDIAG_HOST=blockdiag
    logging:
      driver: "json-file"
      options:
        max-size: "500m"
        max-file: "3"    
    ports:
      - "8000:8000"
    networks: