Skip to content

Commit 974d711

Browse files
authored
Restart unless stopped (#517)
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.
1 parent 0e60232 commit 974d711

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ services:
33
build:
44
context: .
55
dockerfile: ${CLIENT:-geth}/Dockerfile
6+
restart: unless-stopped
67
ports:
78
- "8545:8545" # RPC
89
- "8546:8546" # websocket
@@ -20,6 +21,7 @@ services:
2021
build:
2122
context: .
2223
dockerfile: ${CLIENT:-geth}/Dockerfile
24+
restart: unless-stopped
2325
depends_on:
2426
- execution
2527
ports:

0 commit comments

Comments
 (0)