stack-orchestrator/app/data/compose/docker-compose-go-nitro.yml

43 lines
1.3 KiB
YAML

version: '3.7'
services:
go-nitro:
image: cerc/go-nitro:local
hostname: go-nitro
restart: on-failure
depends_on:
# Wait for Nitro contracts to be deployed
nitro-contracts:
condition: service_completed_successfully
environment:
NITRO_CHAIN_URL: ${NITRO_CHAIN_URL:-ws://fixturenet-eth-geth-1:8546}
NITRO_MSG_PORT: ${NITRO_MSG_PORT:-3005}
NITRO_RPC_PORT: ${NITRO_RPC_PORT:-4005}
NITRO_WS_MSG_PORT: ${NITRO_WS_MSG_PORT:-5005}
NITRO_PK: ${NITRO_PK}
NITRO_CHAIN_PK: ${NITRO_CHAIN_PK}
NITRO_USE_DURABLE_STORE: ${NITRO_USE_DURABLE_STORE:-true}
NITRO_DURABLE_STORE_FOLDER: ${NITRO_DURABLE_STORE_FOLDER:-/app/data/nitro-store}
CERC_NA_ADDRESS: ${CERC_NA_ADDRESS}
CERC_VPA_ADDRESS: ${CERC_VPA_ADDRESS}
CERC_CA_ADDRESS: ${CERC_CA_ADDRESS}
entrypoint: ["bash", "-c", "/app/run-nitro-node.sh"]
volumes:
- go_nitro_data:/app/data
- nitro_deployment:/app/deployment
- ../config/go-nitro/run-nitro-node.sh:/app/run-nitro-node.sh
healthcheck:
test: ["CMD", "nc", "-vz", "localhost", "${NITRO_RPC_PORT:-4005}"]
interval: 5s
timeout: 5s
retries: 5
start_period: 5s
ports:
- "${NITRO_MSG_PORT:-3005}"
- "${NITRO_RPC_PORT:-4005}"
- "${NITRO_WS_MSG_PORT:-5005}"
volumes:
go_nitro_data:
nitro_deployment: