Map nitro node messaging and payment proxy ports to host
This commit is contained in:
parent
6bd7c3bf8b
commit
0b30f911be
@ -11,9 +11,6 @@ services:
|
||||
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}
|
||||
@ -27,15 +24,15 @@ services:
|
||||
- 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}"]
|
||||
test: ["CMD", "nc", "-vz", "localhost", "4005"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 5s
|
||||
ports:
|
||||
- "${NITRO_MSG_PORT:-3005}"
|
||||
- "${NITRO_RPC_PORT:-4005}"
|
||||
- "${NITRO_WS_MSG_PORT:-5005}"
|
||||
- "3005"
|
||||
- "4005"
|
||||
- "5005:5005"
|
||||
|
||||
volumes:
|
||||
go_nitro_data:
|
||||
|
@ -10,18 +10,18 @@ services:
|
||||
go-nitro:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
PROXY_ADDRESS: 0.0.0.0:${PROXY_PORT:-8081}
|
||||
PROXY_NITRO_ENDPOINT: ${PROXY_NITRO_ENDPOINT:-go-nitro:${NITRO_RPC_PORT:-4005}/api/v1}
|
||||
PROXY_ADDRESS: 0.0.0.0:8081
|
||||
PROXY_NITRO_ENDPOINT: ${PROXY_NITRO_ENDPOINT:-go-nitro:4005/api/v1}
|
||||
PROXY_DESTINATION_URL: ${PROXY_DESTINATION_URL:-http://ipld-eth-server:8081}
|
||||
PROXY_COST_PER_BYTE: ${PROXY_COST_PER_BYTE:-1}
|
||||
entrypoint: ["bash", "-c", "/app/run-reverse-payment-proxy.sh"]
|
||||
volumes:
|
||||
- ../config/go-nitro/run-reverse-payment-proxy.sh:/app/run-reverse-payment-proxy.sh
|
||||
healthcheck:
|
||||
test: ["CMD", "nc", "-vz", "localhost", "${PROXY_PORT:-8081}"]
|
||||
test: ["CMD", "nc", "-vz", "localhost", "8081"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 5s
|
||||
ports:
|
||||
- "${PROXY_PORT:-8081}"
|
||||
- "8081:8081"
|
||||
|
@ -30,4 +30,4 @@ fi
|
||||
|
||||
echo "Running Nitro node"
|
||||
|
||||
./nitro -chainurl ${NITRO_CHAIN_URL} -msgport ${NITRO_MSG_PORT} -rpcport ${NITRO_RPC_PORT} -wsmsgport ${NITRO_WS_MSG_PORT} -pk ${NITRO_PK} -chainpk ${NITRO_CHAIN_PK} -naaddress ${NA_ADDRESS} -vpaaddress ${VPA_ADDRESS} -caaddress ${CA_ADDRESS} -usedurablestore ${NITRO_USE_DURABLE_STORE} -durablestorefolder ${NITRO_DURABLE_STORE_FOLDER}
|
||||
./nitro -chainurl ${NITRO_CHAIN_URL} -msgport 3005 -rpcport 4005 -wsmsgport 5005 -pk ${NITRO_PK} -chainpk ${NITRO_CHAIN_PK} -naaddress ${NA_ADDRESS} -vpaaddress ${VPA_ADDRESS} -caaddress ${CA_ADDRESS} -usedurablestore ${NITRO_USE_DURABLE_STORE} -durablestorefolder ${NITRO_DURABLE_STORE_FOLDER}
|
||||
|
@ -8,7 +8,7 @@ repos:
|
||||
- github.com/cerc-io/ipld-eth-db
|
||||
- github.com/cerc-io/ipld-eth-server
|
||||
- github.com/cerc-io/ts-nitro
|
||||
- github.com/cerc-io/go-nitro@ts-interop
|
||||
- github.com/cerc-io/go-nitro@pm-disable-compression
|
||||
containers:
|
||||
# fixturenet images
|
||||
- cerc/go-ethereum
|
||||
|
Loading…
Reference in New Issue
Block a user