Add healthcheck to nitro-rpc-client container (#10)
Part of [Create bridge channel in go-nitro](https://www.notion.so/Create-bridge-channel-in-go-nitro-22ce80a0d8ae4edb80020a8f250ea270) Co-authored-by: Neeraj <neeraj.rtly@gmail.com> Reviewed-on: #10 Co-authored-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to> Co-committed-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to>
This commit was merged in pull request #10.
This commit is contained in:
@@ -3,7 +3,7 @@ name: nitro-bridge
|
||||
services:
|
||||
l2-nitro-contracts:
|
||||
image: cerc/nitro-client:local
|
||||
restart: on-failure
|
||||
restart: on-failure
|
||||
environment:
|
||||
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
||||
OPTIMISM_DEPLOYER_PK: ${OPTIMISM_DEPLOYER_PK}
|
||||
@@ -27,7 +27,7 @@ services:
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
l2-nitro-contracts:
|
||||
condition: service_started
|
||||
condition: service_started
|
||||
environment:
|
||||
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
||||
OPTIMISM_CHAIN_ID: ${OPTIMISM_CHAIN_ID:-42069}
|
||||
@@ -37,7 +37,7 @@ services:
|
||||
NITRO_SC_PK: ${NITRO_SC_PK}
|
||||
NITRO_L1_MSG_PORT: ${NITRO_L1_MSG_PORT:-3005}
|
||||
NITRO_L2_MSG_PORT: ${NITRO_L2_MSG_PORT:-3006}
|
||||
NITRO_RPC_PORT: ${NITRO_RPC_PORT:-4006}
|
||||
NITRO_RPC_PORT: ${NITRO_RPC_PORT:-4005}
|
||||
NITRO_PUBLIC_P2P_HOST: ${NITRO_PUBLIC_P2P_HOST:-127.0.0.1}
|
||||
NITRO_L1_EXT_MULTIADDR: ${NITRO_L1_EXT_MULTIADDR}
|
||||
NITRO_L2_EXT_MULTIADDR: ${NITRO_L2_EXT_MULTIADDR}
|
||||
@@ -56,7 +56,7 @@ services:
|
||||
ports:
|
||||
- 3005
|
||||
- 3006
|
||||
- 4006
|
||||
- 4005
|
||||
healthcheck:
|
||||
test: ["CMD", "nc", "-vz", "localhost", "3006"]
|
||||
interval: 30s
|
||||
|
||||
@@ -8,6 +8,12 @@ services:
|
||||
environment:
|
||||
NODE_EXTRA_CA_CERTS: "/app/mkcert-caroot/rootCA.pem"
|
||||
command: ["bash", "-c", "tail -f /dev/null"]
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "nitro-rpc-client --version -p 4005"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
start_period: 10s
|
||||
volumes:
|
||||
- nitro_node_caroot:/app/mkcert-caroot
|
||||
|
||||
|
||||
Reference in New Issue
Block a user