2024-07-23 06:40:19 +00:00
|
|
|
name: nitro-bridge
|
2024-07-19 05:27:46 +00:00
|
|
|
|
|
|
|
services:
|
2024-08-26 14:00:02 +00:00
|
|
|
l2-nitro-contracts:
|
|
|
|
image: cerc/nitro-client:local
|
|
|
|
restart: on-failure
|
|
|
|
environment:
|
|
|
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
|
|
|
OPTIMISM_DEPLOYER_PK: ${OPTIMISM_DEPLOYER_PK}
|
|
|
|
OPTIMISM_CHAIN_ID: ${OPTIMISM_CHAIN_ID:-42069}
|
|
|
|
OPTIMISM_URL: ${OPTIMISM_URL}
|
|
|
|
TOKEN_NAME: ${TOKEN_NAME}
|
|
|
|
TOKEN_SYMBOL: ${TOKEN_SYMBOL}
|
|
|
|
INITIAL_TOKEN_SUPPLY: ${INITIAL_TOKEN_SUPPLY}
|
|
|
|
DISABLE_DETERMINISTIC_DEPLOYMENT: ${DISABLE_DETERMINISTIC_DEPLOYMENT:-true}
|
|
|
|
L1_ASSET_ADDRESS: ${L1_ASSET_ADDRESS}
|
|
|
|
volumes:
|
|
|
|
- nitro_deployment:/app/deployment
|
|
|
|
- ../config/nitro-contracts/deploy-l2-contracts.sh:/app/deploy-l2-contracts.sh
|
|
|
|
command: ["bash", "-c", "/app/deploy-l2-contracts.sh"]
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
2024-07-19 05:27:46 +00:00
|
|
|
nitro-bridge:
|
|
|
|
image: cerc/go-nitro:local
|
|
|
|
hostname: nitro-bridge
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
2024-08-26 14:00:02 +00:00
|
|
|
l2-nitro-contracts:
|
|
|
|
condition: service_started
|
2024-07-19 05:27:46 +00:00
|
|
|
environment:
|
|
|
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
2024-07-23 06:40:19 +00:00
|
|
|
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}
|
2024-07-23 11:46:46 +00:00
|
|
|
NITRO_L1_EXT_MULTIADDR: ${NITRO_L1_EXT_MULTIADDR}
|
|
|
|
NITRO_L2_EXT_MULTIADDR: ${NITRO_L2_EXT_MULTIADDR}
|
2024-07-23 06:40:19 +00:00
|
|
|
NITRO_PUBLIC_RPC_HOST: nitro-bridge
|
2024-08-26 14:00:02 +00:00
|
|
|
NA_ADDRESS: ${NA_ADDRESS}
|
|
|
|
CA_ADDRESS: ${CA_ADDRESS}
|
|
|
|
VPA_ADDRESS: ${VPA_ADDRESS}
|
2024-07-19 05:27:46 +00:00
|
|
|
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:
|
2024-07-30 10:40:45 +00:00
|
|
|
test: ["CMD", "nc", "-vz", "localhost", "3006"]
|
2024-07-19 05:27:46 +00:00
|
|
|
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:
|