From d7818c5a536eee61c8ae91848b93224cf3d529d4 Mon Sep 17 00:00:00 2001 From: Bart Swedrowski Date: Tue, 29 Jul 2025 16:44:38 +0100 Subject: [PATCH] Restart unless stopped Restarting unless-stopped is a good practice in production-like environments (and most of the non-production systems). It improves resilience (containers will restart if node is rebooted or if one of the containers gets killed by OOM); it also helps with predictibility as it won't restart the containers if we intentionally stopped them. --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index b90222b0..1ad38b79 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,6 +3,7 @@ services: build: context: . dockerfile: ${CLIENT:-geth}/Dockerfile + restart: unless-stopped ports: - "8545:8545" # RPC - "8546:8546" # websocket @@ -20,6 +21,7 @@ services: build: context: . dockerfile: ${CLIENT:-geth}/Dockerfile + restart: unless-stopped depends_on: - execution ports: