mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-22 19:49:22 +00:00
Add restart policy to Docker containers
This commit is contained in:
parent
f0694172ef
commit
95c3cfc52e
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue