Add restart policy to Docker containers

This commit is contained in:
Luke Parker 2024-02-09 08:43:33 -05:00
parent f0694172ef
commit 95c3cfc52e
No known key found for this signature in database

View file

@ -345,6 +345,7 @@ fn start(network: Network, services: HashSet<String>) {
let mut command = Command::new("docker"); let mut command = Command::new("docker");
let command = command.arg("create").arg("--name").arg(&docker_name); let command = command.arg("create").arg("--name").arg(&docker_name);
let command = command.arg("--network").arg("serai"); let command = command.arg("--network").arg("serai");
let command = command.arg("--restart").arg("always");
let command = match name { let command = match name {
"bitcoin" => { "bitcoin" => {
if network == Network::Dev { if network == Network::Dev {