Merge pull request #5125 from abulava/vector-container-up

Start the vector logging container after Docker daemon restarts
This commit is contained in:
Jose Diaz-Gonzalez
2022-05-10 12:54:28 -04:00
committed by GitHub
2 changed files with 7 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ func startVectorContainer(vectorImage string) error {
common.DockerBin(),
"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/run/docker.sock:/var/run/docker.sock",
"--volume", common.MustGetEnv("DOKKU_LOGS_HOST_DIR") + ":/var/logs/dokku/apps",