Update nitro-node stack to use public IP from config (#3)

* Rename nitro-node stack

* Add flag for setting public IP

* Log values in the nitro-node script

* Add command to install nitro-rpc-client

* Fix directory name

* Set default value for public IP
This commit is contained in:
Isha Venikar
2024-07-18 17:18:24 +05:30
committed by GitHub
parent c0fe155708
commit 192e6feee3
9 changed files with 46 additions and 22 deletions
@@ -15,6 +15,7 @@ services:
CERC_VPA_ADDRESS: ${CERC_VPA_ADDRESS}
CERC_CA_ADDRESS: ${CERC_CA_ADDRESS}
CERC_BOOT_PEERS: ${CERC_BOOT_PEERS}
CERC_PUBLIC_IP: ${CERC_PUBLIC_IP:-127.0.0.1}
entrypoint: ["bash", "-c", "/app/run-nitro-node.sh"]
volumes:
- ../config/go-nitro/run-nitro-node.sh:/app/run-nitro-node.sh
@@ -15,8 +15,7 @@ services:
CERC_OPTIMISM_DEPLOYER_PK: ${CERC_GETH_DEPLOYER_PK}
CERC_DISABLE_DETERMINISTIC_DEPLOYMENT: true
volumes:
- ../config/nitro-contracts/deploy.sh:/app/deploy.sh
- ../config/nitro-contracts/deploy.sh:/app/deploy.sh
command: ["bash", "-c", "/app/deploy.sh"]
extra_hosts:
- "host.docker.internal:host-gateway"
@@ -1,8 +1,8 @@
name: nitro-rpc-client
services:
nitro-rpc-client:
image: cerc/nitro-rpc-client:local
hostname: nitro-rpc-client
restart: on-failure
command: ["bash", "-c", "tail -f /dev/null"]
nitro-rpc-client:
image: cerc/nitro-rpc-client:local
hostname: nitro-rpc-client
restart: on-failure
command: ["bash", "-c", "tail -f /dev/null"]