From 145f62b9de0e2d8ac046791122a5bc512cbcf1b9 Mon Sep 17 00:00:00 2001 From: Dustin Kaiser Date: Tue, 24 Oct 2023 08:49:05 +0200 Subject: [PATCH] OPS Traefik loglevel as variable --- services/traefik/docker-compose.aws.yml | 2 +- services/traefik/docker-compose.dalco.yml | 2 +- services/traefik/docker-compose.letsencrypt.http.yml | 2 +- services/traefik/docker-compose.local.yml | 2 +- services/traefik/docker-compose.master.yml | 2 +- services/traefik/docker-compose.public.yml | 2 +- services/traefik/docker-compose.yml.j2 | 2 +- services/traefik/template.env | 1 + 8 files changed, 8 insertions(+), 7 deletions(-) diff --git a/services/traefik/docker-compose.aws.yml b/services/traefik/docker-compose.aws.yml index 908d073d..dedacf03 100644 --- a/services/traefik/docker-compose.aws.yml +++ b/services/traefik/docker-compose.aws.yml @@ -4,7 +4,7 @@ services: command: - '--api=true' - '--api.dashboard=true' - - '--log.level=WARNING' + - '--log.level=${OPS_TRAEFIK_LOGLEVEL}' - '--accesslog=true' - '--metrics.prometheus=true' - '--metrics.prometheus.addEntryPointsLabels=true' diff --git a/services/traefik/docker-compose.dalco.yml b/services/traefik/docker-compose.dalco.yml index d1c5cc83..9e84f00f 100644 --- a/services/traefik/docker-compose.dalco.yml +++ b/services/traefik/docker-compose.dalco.yml @@ -4,7 +4,7 @@ services: command: - '--api=true' - '--api.dashboard=true' - - '--log.level=INFO' + - '--log.level=${OPS_TRAEFIK_LOGLEVEL}' # - '--accesslog=true' - '--metrics.prometheus=true' - '--metrics.prometheus.addEntryPointsLabels=true' diff --git a/services/traefik/docker-compose.letsencrypt.http.yml b/services/traefik/docker-compose.letsencrypt.http.yml index 86988554..168246ca 100644 --- a/services/traefik/docker-compose.letsencrypt.http.yml +++ b/services/traefik/docker-compose.letsencrypt.http.yml @@ -4,7 +4,7 @@ services: command: - "--api=true" - "--api.dashboard=true" - - "--log.level=INFO" + - "--log.level=${OPS_TRAEFIK_LOGLEVEL}" - "--accesslog=false" - "--metrics.prometheus=true" - "--metrics.prometheus.addEntryPointsLabels=true" diff --git a/services/traefik/docker-compose.local.yml b/services/traefik/docker-compose.local.yml index 29fb8023..07fdd4ad 100644 --- a/services/traefik/docker-compose.local.yml +++ b/services/traefik/docker-compose.local.yml @@ -9,7 +9,7 @@ services: - "/customEntrypoint.sh" - "--api=true" - "--api.dashboard=true" - - "--log.level=DEBUG" + - "--log.level=${OPS_TRAEFIK_LOGLEVEL}" - "--accesslog=true" - "--metrics.prometheus=true" - "--metrics.prometheus.addEntryPointsLabels=true" diff --git a/services/traefik/docker-compose.master.yml b/services/traefik/docker-compose.master.yml index 84858cde..85603c17 100644 --- a/services/traefik/docker-compose.master.yml +++ b/services/traefik/docker-compose.master.yml @@ -4,7 +4,7 @@ services: command: - '--api=true' - '--api.dashboard=true' - - '--log.level=WARNING' + - '--log.level=${OPS_TRAEFIK_LOGLEVEL}' # - '--accesslog=true' - '--metrics.prometheus=true' - '--metrics.prometheus.addEntryPointsLabels=true' diff --git a/services/traefik/docker-compose.public.yml b/services/traefik/docker-compose.public.yml index 98a94d01..dbe3afef 100644 --- a/services/traefik/docker-compose.public.yml +++ b/services/traefik/docker-compose.public.yml @@ -5,7 +5,7 @@ services: command: - '--api=true' - '--api.dashboard=true' - - '--log.level=INFO' + - '--log.level=${OPS_TRAEFIK_LOGLEVEL}' - '--accesslog=false' - '--metrics.prometheus=true' - '--metrics.prometheus.addEntryPointsLabels=true' diff --git a/services/traefik/docker-compose.yml.j2 b/services/traefik/docker-compose.yml.j2 index 61ea934e..ad7ef694 100644 --- a/services/traefik/docker-compose.yml.j2 +++ b/services/traefik/docker-compose.yml.j2 @@ -7,7 +7,7 @@ services: command: - "--api=true" - "--api.dashboard=true" - - "--log.level=INFO" + - "--log.level=${OPS_TRAEFIK_LOGLEVEL}" - "--accesslog=false" - "--metrics.prometheus=true" - "--metrics.prometheus.addEntryPointsLabels=true" diff --git a/services/traefik/template.env b/services/traefik/template.env index fb6438a3..39a99747 100644 --- a/services/traefik/template.env +++ b/services/traefik/template.env @@ -30,3 +30,4 @@ DEPLOYMENT_FQDNS='${DEPLOYMENT_FQDNS}' CERTIFICATE_GENERATION_FQDNS='${CERTIFICATE_GENERATION_FQDNS}' CERTIFICATE_RESOLVE_DNS_CHALLANGE_IP=${CERTIFICATE_RESOLVE_DNS_CHALLANGE_IP} OPS_TRAEFIK_LETSENCRYPT_ACME_CA_SERVER=${OPS_TRAEFIK_LETSENCRYPT_ACME_CA_SERVER} +OPS_TRAEFIK_LOGLEVEL=${OPS_TRAEFIK_LOGLEVEL}