Set RestartPolicy:"unless-stopped" for the vector container.

This commit is contained in:
Andrey Bulava
2022-04-26 13:42:10 +03:00
parent 12656a111a
commit 8d640ac958
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",