From 95c3cfc52e4c710265eb8e9bc5bcb672b002bc97 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Fri, 9 Feb 2024 08:43:33 -0500 Subject: [PATCH] Add restart policy to Docker containers --- orchestration/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/orchestration/src/main.rs b/orchestration/src/main.rs index 5ff7a280..a3643e7a 100644 --- a/orchestration/src/main.rs +++ b/orchestration/src/main.rs @@ -345,6 +345,7 @@ fn start(network: Network, services: HashSet) { let mut command = Command::new("docker"); let command = command.arg("create").arg("--name").arg(&docker_name); let command = command.arg("--network").arg("serai"); + let command = command.arg("--restart").arg("always"); let command = match name { "bitcoin" => { if network == Network::Dev {