From 056d852dba8c100f380683fc9f3fd38a9b580aaa Mon Sep 17 00:00:00 2001 From: "dboulware@ntia.doc.gov" Date: Tue, 11 Jun 2024 13:48:52 -0600 Subject: [PATCH 1/2] configure local logging driver. --- compose.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/compose.yaml b/compose.yaml index f5123cc0..5c419302 100644 --- a/compose.yaml +++ b/compose.yaml @@ -14,6 +14,11 @@ services: timeout: 3s retries: 1 start_period: 30s + logging: + driver: local + max-file: 20 + max-size: 10m + api: healthcheck: @@ -92,6 +97,10 @@ services: - /dev/nvme0n1:/dev/nvme0n1:ro extra_hosts: - "${MANAGER_FQDN}:${MANAGER_IP}" + logging: + driver: local + max-file: 20 + max-size: 10m command: /entrypoints/api_entrypoint.sh nginx: @@ -118,6 +127,10 @@ services: - ./configs/certs/${SSL_CA_PATH}:/etc/ssl/certs/ca.crt:ro environment: - DOMAINS + logging: + driver: local + max-file: 20 + max-size: 10m # This is a stop-gap until Docker adds the capability to restart unhealthy # containers natively. From d2c5307bca289c39a3ceaa0070bc4722b902abd4 Mon Sep 17 00:00:00 2001 From: "dboulware@ntia.doc.gov" Date: Tue, 11 Jun 2024 13:55:34 -0600 Subject: [PATCH 2/2] pass logging options. --- compose.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/compose.yaml b/compose.yaml index 5c419302..c2cf9e21 100644 --- a/compose.yaml +++ b/compose.yaml @@ -16,8 +16,9 @@ services: start_period: 30s logging: driver: local - max-file: 20 - max-size: 10m + options: + max-file: 20 + max-size: 10m api: @@ -99,8 +100,9 @@ services: - "${MANAGER_FQDN}:${MANAGER_IP}" logging: driver: local - max-file: 20 - max-size: 10m + options: + max-file: 20 + max-size: 10m command: /entrypoints/api_entrypoint.sh nginx: @@ -129,8 +131,9 @@ services: - DOMAINS logging: driver: local - max-file: 20 - max-size: 10m + options: + max-file: 20 + max-size: 10m # This is a stop-gap until Docker adds the capability to restart unhealthy # containers natively.