From ee740942955d69b18f5ca51e5eba0d76a7e5be25 Mon Sep 17 00:00:00 2001 From: Andrew Kroh Date: Tue, 25 Apr 2023 11:42:46 -0400 Subject: [PATCH] docker-compose config - bind mount /run/service_logs/ in Agent container (#1236) This mounts the service_logs directory at /run/service_logs for the purpose of testing the journald input. It is a workaround but an upstream bug. Closes #1235 --- internal/stack/_static/docker-compose-stack.yml.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/stack/_static/docker-compose-stack.yml.tmpl b/internal/stack/_static/docker-compose-stack.yml.tmpl index 6988e1084..141448eee 100644 --- a/internal/stack/_static/docker-compose-stack.yml.tmpl +++ b/internal/stack/_static/docker-compose-stack.yml.tmpl @@ -137,6 +137,10 @@ services: - type: bind source: ../../../tmp/service_logs/ target: /tmp/service_logs/ + # Mount service_logs under /run too as a testing workaround for the journald input (see elastic-package#1235). + - type: bind + source: ../../../tmp/service_logs/ + target: /run/service_logs/ elastic-agent_is_ready: image: tianon/true