Update nitro-node stack setup (#5)
* Rename service for nitro node * Update nitro node setup * Rename nitro-contracts image to nitro-client * Fix nitro node config setup * Add env variable for deterministic deployment * Keep nitro-contracts service running * Start nitro-bridge service after asset file is ready * Update environment variables for all services * Use quotes for bridge address * Update nitro-node and bridge stack readme * Fix nitro-node readme --------- Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
name: nitro-bridge
|
||||
|
||||
services:
|
||||
nitro-bridge:
|
||||
image: cerc/go-nitro:local
|
||||
hostname: nitro-bridge
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
nitro-contracts:
|
||||
condition: service_started
|
||||
environment:
|
||||
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
||||
GETH_CHAIN_ID: ${GETH_CHAIN_ID:-1212}
|
||||
OPTIMISM_CHAIN_ID: ${OPTIMISM_CHAIN_ID:-42069}
|
||||
NITRO_L1_CHAIN_URL: ${NITRO_L1_CHAIN_URL}
|
||||
NITRO_L2_CHAIN_URL: ${NITRO_L2_CHAIN_URL}
|
||||
NITRO_CHAIN_PK: ${NITRO_CHAIN_PK}
|
||||
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_PUBLIC_P2P_HOST: ${NITRO_PUBLIC_P2P_HOST:-127.0.0.1}
|
||||
NITRO_PUBLIC_RPC_HOST: nitro-bridge
|
||||
entrypoint: ["bash", "-c", "/app/run-bridge.sh"]
|
||||
volumes:
|
||||
- nitro_bridge_data:/app/data
|
||||
- nitro_bridge_tls:/app/tls
|
||||
- nitro_node_caroot:/app/mkcert-caroot
|
||||
- nitro_deployment:/app/deployment
|
||||
- ../config/go-nitro/run-bridge.sh:/app/run-bridge.sh
|
||||
- ../config/go-nitro/create-certs.sh:/app/create-certs.sh
|
||||
ports:
|
||||
- 3005
|
||||
- 3006
|
||||
- 4006
|
||||
healthcheck:
|
||||
test: ["CMD", "nc", "-vz", "localhost", "4006"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
start_period: 10s
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
|
||||
volumes:
|
||||
nitro_bridge_data:
|
||||
nitro_bridge_tls:
|
||||
nitro_node_caroot:
|
||||
nitro_deployment:
|
||||
Reference in New Issue
Block a user