From d5a9bd80b2bdc4ecb10a99d3db6f5441258acce7 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 20 Apr 2025 12:26:56 +0000 Subject: [PATCH] docker: hide healthcheck from logs --- .../examples/docker/basic-docker-compose/docker-compose.yml | 3 ++- .../docker/idp-authentik-traefik/docker-compose.yml | 6 ------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/examples/docker/basic-docker-compose/docker-compose.yml b/docs/examples/docker/basic-docker-compose/docker-compose.yml index 9cfa03e4..ba5e74d8 100644 --- a/docs/examples/docker/basic-docker-compose/docker-compose.yml +++ b/docs/examples/docker/basic-docker-compose/docker-compose.yml @@ -17,7 +17,8 @@ services: stop_grace_period: 15s # thumbnailer is allowed to continue finishing up for 10s after the shutdown signal healthcheck: - test: ["CMD-SHELL", "wget --spider -q 127.0.0.1:3923/?reset"] + # hide it from logs with "/._" so it matches the default --lf-url filter + test: ["CMD-SHELL", "wget --spider -q 127.0.0.1:3923/?reset=/._"] interval: 1m timeout: 2s retries: 5 diff --git a/docs/examples/docker/idp-authentik-traefik/docker-compose.yml b/docs/examples/docker/idp-authentik-traefik/docker-compose.yml index b9a6a69b..ee10f0f9 100644 --- a/docs/examples/docker/idp-authentik-traefik/docker-compose.yml +++ b/docs/examples/docker/idp-authentik-traefik/docker-compose.yml @@ -22,12 +22,6 @@ services: - 'traefik.http.routers.fs.rule=Host(`fs.example.com`)' - 'traefik.http.routers.fs.entrypoints=http' #- 'traefik.http.routers.fs.middlewares=authelia@docker' # TODO: ??? - healthcheck: - test: ["CMD-SHELL", "wget --spider -q 127.0.0.1:3923/?reset"] - interval: 1m - timeout: 2s - retries: 5 - start_period: 15s stop_grace_period: 15s # thumbnailer is allowed to continue finishing up for 10s after the shutdown signal environment: LD_PRELOAD: /usr/lib/libmimalloc-secure.so.NOPE