From 18a6ba90f914cc4064d58941f4179ba5a03f5b10 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 12 Mar 2021 06:31:01 -0500 Subject: [PATCH] fix: add the correct log mount for app logs As per documentation, the `/var/log/dokku/apps` should be mounted from the host to the container. The existing mount was `/var/log/dokku` mounted to `/var/logs/dokku/apps`. The broken mount will be removed in the next minor. --- plugins/logs/functions.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/logs/functions.go b/plugins/logs/functions.go index 357278f6a..85fcac236 100644 --- a/plugins/logs/functions.go +++ b/plugins/logs/functions.go @@ -73,6 +73,7 @@ func startVectorContainer(vectorImage string) error { "--volume", "/var/lib/dokku/data/logs/vector.json:/etc/vector/vector.json", "--volume", "/var/run/docker.sock:/var/run/docker.sock", "--volume", common.MustGetEnv("DOKKU_LOGS_HOST_DIR") + ":/var/logs/dokku/apps", + "--volume", common.MustGetEnv("DOKKU_LOGS_HOST_DIR") + "/apps:/var/log/dokku/apps", vectorImage, "--config", "/etc/vector/vector.json", "--watch-config", "1"}, " ")) cmd.ShowOutput = false