feat: mount the vector data directory instead of the vector file

This allows users to provide extra configuration files for Vector, such as when using the GCP Operations log sink.

Closes #4971
This commit is contained in:
Jose Diaz-Gonzalez
2023-07-02 05:01:52 -04:00
parent 820883e60c
commit 1d0d050596
2 changed files with 2 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ func startVectorContainer(vectorImage string) error {
"container",
"run", "--detach", "--name", vectorContainerName, common.MustGetEnv("DOKKU_GLOBAL_RUN_ARGS"),
"--restart", "unless-stopped",
"--volume", "/var/lib/dokku/data/logs/vector.json:/etc/vector/vector.json",
"--volume", "/var/lib/dokku/data/logs:/etc/vector",
"--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",