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
|
condition: service_completed_successfully
|
||||||
environment:
|
environment:
|
||||||
NITRO_CHAIN_URL: ${NITRO_CHAIN_URL:-ws://fixturenet-eth-geth-1:8546}
|
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_PK: ${NITRO_PK}
|
||||||
NITRO_CHAIN_PK: ${NITRO_CHAIN_PK}
|
NITRO_CHAIN_PK: ${NITRO_CHAIN_PK}
|
||||||
NITRO_USE_DURABLE_STORE: ${NITRO_USE_DURABLE_STORE:-true}
|
NITRO_USE_DURABLE_STORE: ${NITRO_USE_DURABLE_STORE:-true}
|
||||||
@ -27,15 +24,15 @@ services:
|
|||||||
- nitro_deployment:/app/deployment
|
- nitro_deployment:/app/deployment
|
||||||
- ../config/go-nitro/run-nitro-node.sh:/app/run-nitro-node.sh
|
- ../config/go-nitro/run-nitro-node.sh:/app/run-nitro-node.sh
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "nc", "-vz", "localhost", "${NITRO_RPC_PORT:-4005}"]
|
test: ["CMD", "nc", "-vz", "localhost", "4005"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
start_period: 5s
|
start_period: 5s
|
||||||
ports:
|
ports:
|
||||||
- "${NITRO_MSG_PORT:-3005}"
|
- "3005"
|
||||||
- "${NITRO_RPC_PORT:-4005}"
|
- "4005"
|
||||||
- "${NITRO_WS_MSG_PORT:-5005}"
|
- "5005:5005"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
go_nitro_data:
|
go_nitro_data:
|
||||||
|
@ -10,18 +10,18 @@ services:
|
|||||||
go-nitro:
|
go-nitro:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
PROXY_ADDRESS: 0.0.0.0:${PROXY_PORT:-8081}
|
PROXY_ADDRESS: 0.0.0.0:8081
|
||||||
PROXY_NITRO_ENDPOINT: ${PROXY_NITRO_ENDPOINT:-go-nitro:${NITRO_RPC_PORT:-4005}/api/v1}
|
PROXY_NITRO_ENDPOINT: ${PROXY_NITRO_ENDPOINT:-go-nitro:4005/api/v1}
|
||||||
PROXY_DESTINATION_URL: ${PROXY_DESTINATION_URL:-http://ipld-eth-server:8081}
|
PROXY_DESTINATION_URL: ${PROXY_DESTINATION_URL:-http://ipld-eth-server:8081}
|
||||||
PROXY_COST_PER_BYTE: ${PROXY_COST_PER_BYTE:-1}
|
PROXY_COST_PER_BYTE: ${PROXY_COST_PER_BYTE:-1}
|
||||||
entrypoint: ["bash", "-c", "/app/run-reverse-payment-proxy.sh"]
|
entrypoint: ["bash", "-c", "/app/run-reverse-payment-proxy.sh"]
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/go-nitro/run-reverse-payment-proxy.sh:/app/run-reverse-payment-proxy.sh
|
- ../config/go-nitro/run-reverse-payment-proxy.sh:/app/run-reverse-payment-proxy.sh
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "nc", "-vz", "localhost", "${PROXY_PORT:-8081}"]
|
test: ["CMD", "nc", "-vz", "localhost", "8081"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
start_period: 5s
|
start_period: 5s
|
||||||
ports:
|
ports:
|
||||||
- "${PROXY_PORT:-8081}"
|
- "8081:8081"
|
||||||
|
@ -30,4 +30,4 @@ fi
|
|||||||
|
|
||||||
echo "Running Nitro node"
|
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-db
|
||||||
- github.com/cerc-io/ipld-eth-server
|
- github.com/cerc-io/ipld-eth-server
|
||||||
- github.com/cerc-io/ts-nitro
|
- github.com/cerc-io/ts-nitro
|
||||||
- github.com/cerc-io/go-nitro@ts-interop
|
- github.com/cerc-io/go-nitro@pm-disable-compression
|
||||||
containers:
|
containers:
|
||||||
# fixturenet images
|
# fixturenet images
|
||||||
- cerc/go-ethereum
|
- cerc/go-ethereum
|
||||||
|
Loading…
Reference in New Issue
Block a user