From 63af333315bcecbf0179d5be5cc0b0487cea2e07 Mon Sep 17 00:00:00 2001 From: prathamesh0 Date: Thu, 18 May 2023 14:38:11 +0530 Subject: [PATCH] Add restart policies for fixturenet-eth stack containers Former-commit-id: 716e132300d88dbe6121ed3968a9c78b561196ef --- app/data/compose/docker-compose-fixturenet-eth.yml | 6 ++++++ app/data/compose/docker-compose-foundry.yml | 1 + 2 files changed, 7 insertions(+) diff --git a/app/data/compose/docker-compose-fixturenet-eth.yml b/app/data/compose/docker-compose-fixturenet-eth.yml index 42737f5b..2a399662 100644 --- a/app/data/compose/docker-compose-fixturenet-eth.yml +++ b/app/data/compose/docker-compose-fixturenet-eth.yml @@ -2,6 +2,7 @@ version: '3.7' services: fixturenet-eth-bootnode-geth: + restart: always hostname: fixturenet-eth-bootnode-geth env_file: - ../config/fixturenet-eth/fixturenet-eth.env @@ -15,6 +16,7 @@ services: - "30303" fixturenet-eth-geth-1: + restart: always hostname: fixturenet-eth-geth-1 cap_add: - SYS_PTRACE @@ -42,6 +44,7 @@ services: - "6060" fixturenet-eth-geth-2: + restart: always hostname: fixturenet-eth-geth-2 healthcheck: test: ["CMD", "nc", "-v", "localhost", "8545"] @@ -60,12 +63,14 @@ services: - fixturenet_eth_geth_2_data:/root/ethdata fixturenet-eth-bootnode-lighthouse: + restart: always hostname: fixturenet-eth-bootnode-lighthouse environment: RUN_BOOTNODE: "true" image: cerc/fixturenet-eth-lighthouse:local fixturenet-eth-lighthouse-1: + restart: always hostname: fixturenet-eth-lighthouse-1 healthcheck: test: ["CMD", "wget", "--tries=1", "--connect-timeout=1", "--quiet", "-O", "-", "http://localhost:8001/eth/v2/beacon/blocks/head"] @@ -91,6 +96,7 @@ services: - "8001" fixturenet-eth-lighthouse-2: + restart: always hostname: fixturenet-eth-lighthouse-2 healthcheck: test: ["CMD", "wget", "--tries=1", "--connect-timeout=1", "--quiet", "-O", "-", "http://localhost:8001/eth/v2/beacon/blocks/head"] diff --git a/app/data/compose/docker-compose-foundry.yml b/app/data/compose/docker-compose-foundry.yml index e489611c..e5987b5e 100644 --- a/app/data/compose/docker-compose-foundry.yml +++ b/app/data/compose/docker-compose-foundry.yml @@ -1,6 +1,7 @@ # Add-on pod to include foundry tooling within a fixturenet services: foundry: + restart: always image: cerc/foundry:local command: ["while :; do sleep 600; done"] volumes: