From 5e44e71cc69765caff3586a184b98ee4e3af24c1 Mon Sep 17 00:00:00 2001 From: woozu-shin Date: Wed, 11 Oct 2023 21:28:28 +0900 Subject: [PATCH] [NO-ISSUE] Add logging properties --- docker-compose.yml | 60 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 6706cb0..666bfc2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -48,6 +48,11 @@ services: restart: always depends_on: - zoo1 + logging: + driver: "json-file" + options: + max-file: "3" + max-size: "10m" pinpoint-mysql: build: @@ -72,6 +77,11 @@ services: - mysql_data:/var/lib/mysql networks: - pinpoint + logging: + driver: "json-file" + options: + max-file: "3" + max-size: "10m" pinpoint-web: build: @@ -110,6 +120,11 @@ services: - "pinpoint-mysql:pinpoint-mysql" networks: - pinpoint + logging: + driver: "json-file" + options: + max-file: "3" + max-size: "10m" pinpoint-collector: build: @@ -151,6 +166,11 @@ services: - LOGGING_LEVEL_ROOT=${COLLECTOR_LOGGING_LEVEL_ROOT} - FLINK_CLUSTER_ENABLE=${FLINK_CLUSTER_ENABLE} - FLINK_CLUSTER_ZOOKEEPER_ADDRESS=${FLINK_CLUSTER_ZOOKEEPER_ADDRESS} + logging: + driver: "json-file" + options: + max-file: "3" + max-size: "10m" pinpoint-quickstart: build: @@ -169,6 +189,11 @@ services: - pinpoint depends_on: - pinpoint-agent + logging: + driver: "json-file" + options: + max-file: "3" + max-size: "10m" pinpoint-batch: build: @@ -213,6 +238,11 @@ services: - "pinpoint-mysql:pinpoint-mysql" networks: - pinpoint + logging: + driver: "json-file" + options: + max-file: "3" + max-size: "10m" pinpoint-agent: build: @@ -244,6 +274,11 @@ services: - PROFILER_TRANSPORT_MODULE=${PROFILER_TRANSPORT_MODULE} depends_on: - pinpoint-collector + logging: + driver: "json-file" + options: + max-file: "3" + max-size: "10m" #zookeepers zoo1: @@ -261,6 +296,11 @@ services: ZOO_SERVERS: server.1=0.0.0.0:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888 networks: - pinpoint + logging: + driver: "json-file" + options: + max-file: "3" + max-size: "10m" zoo2: image: zookeeper:3.4.13 @@ -277,6 +317,11 @@ services: ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=0.0.0.0:2888:3888 server.3=zoo3:2888:3888 networks: - pinpoint + logging: + driver: "json-file" + options: + max-file: "3" + max-size: "10m" zoo3: image: zookeeper:3.4.13 @@ -293,6 +338,11 @@ services: ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=0.0.0.0:2888:3888 networks: - pinpoint + logging: + driver: "json-file" + options: + max-file: "3" + max-size: "10m" ##flink jobmanager: @@ -316,6 +366,11 @@ services: - pinpoint depends_on: - zoo1 + logging: + driver: "json-file" + options: + max-file: "3" + max-size: "10m" taskmanager: build: @@ -344,6 +399,11 @@ services: - JOB_MANAGER_RPC_ADDRESS=jobmanager networks: - pinpoint + logging: + driver: "json-file" + options: + max-file: "3" + max-size: "10m" volumes: data-volume: