nabarun
02d2267b36
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: #3
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", "3005"]
|
|
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:
|