Prathamesh Musale
fe85e74425
Part of [Create bridge channel in go-nitro](https://www.notion.so/Create-bridge-channel-in-go-nitro-22ce80a0d8ae4edb80020a8f250ea270) Requires https://github.com/cerc-io/go-nitro/pull/63 Reviewed-on: #1 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
name: nitro-node
|
|
|
|
services:
|
|
nitro-node:
|
|
image: cerc/go-nitro:local
|
|
hostname: nitro-node
|
|
restart: on-failure
|
|
environment:
|
|
NITRO_USE_DURABLE_STORE: true
|
|
NITRO_MSG_PORT: ${NITRO_MSG_PORT:-3005}
|
|
NITRO_RPC_PORT: ${NITRO_RPC_PORT:-4005}
|
|
NITRO_SC_PK: ${NITRO_SC_PK}
|
|
NITRO_CHAIN_PK: ${NITRO_CHAIN_PK}
|
|
NITRO_CHAIN_URL: ${NITRO_CHAIN_URL}
|
|
NITRO_BOOTPEERS: ${NITRO_BOOTPEERS}
|
|
NITRO_PUBLIC_P2P_HOST: ${NITRO_PUBLIC_P2P_HOST:-127.0.0.1}
|
|
NITRO_EXT_MULTIADDR: ${NITRO_EXT_MULTIADDR}
|
|
NITRO_L2: ${NITRO_L2:-false}
|
|
NA_ADDRESS: ${NA_ADDRESS}
|
|
CA_ADDRESS: ${CA_ADDRESS}
|
|
VPA_ADDRESS: ${VPA_ADDRESS}
|
|
BRIDGE_ADDRESS: ${BRIDGE_ADDRESS}
|
|
NITRO_PUBLIC_RPC_HOST: nitro-node
|
|
entrypoint: ["bash", "-c", "/app/run-nitro-node.sh"]
|
|
volumes:
|
|
- nitro_node_data:/app/data
|
|
- nitro_node_tls:/app/tls
|
|
- nitro_node_caroot:/app/mkcert-caroot
|
|
- ../config/go-nitro/run-nitro-node.sh:/app/run-nitro-node.sh
|
|
- ../config/go-nitro/create-certs.sh:/app/create-certs.sh
|
|
ports:
|
|
- 3005
|
|
- 4005
|
|
healthcheck:
|
|
test: ["CMD", "nc", "-vz", "localhost", "4005"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 10
|
|
start_period: 10s
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
volumes:
|
|
nitro_node_data:
|
|
nitro_node_tls:
|
|
nitro_node_caroot:
|