46 lines
1.3 KiB
YAML
46 lines
1.3 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_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:
|