feat: actually mount the apps log dir

Also fix it so that the log directory is mountable from a custom path on the host if running dokku within a container.
This commit is contained in:
Jose Diaz-Gonzalez
2021-01-04 21:45:26 -05:00
parent 1aec869f9e
commit 0b3a6687f6
3 changed files with 3 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ func startVectorContainer(vectorImage string) error {
"run", "--detach", "--name", vectorContainerName, common.MustGetEnv("DOKKU_GLOBAL_RUN_ARGS"),
"--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",
vectorImage,
"--config", "/etc/vector/vector.json"}, " "))