Set default values for RPC endpoint in graph-node

This commit is contained in:
Prathamesh Musale 2023-08-30 11:29:04 +05:30
parent 0ea81c1f68
commit 1428169450
2 changed files with 2 additions and 10 deletions

View File

@ -18,7 +18,7 @@ services:
postgres_user: graph-node
postgres_pass: password
postgres_db: graph-node
ethereum: ${NETWORK}:${ETH_RPC_ENDPOINT}
ethereum: ${NETWORK:-filecoin}:${ETH_RPC_ENDPOINT:-https://archive.lotus.vdb.to/rpc/v1}
GRAPH_LOG: debug
ETHEREUM_REORG_THRESHOLD: 3
ports:

View File

@ -32,18 +32,10 @@ laconic-so --stack sushiswap-subgraph build-containers
## Deploy
Create an env file to be used in the next step:
```bash
# Network and ETH RPC endpoint to run graph-node against
NETWORK=filecoin
ETH_RPC_ENDPOINT=
```
Deploy the stack:
```bash
laconic-so --stack sushiswap-subgraph deploy --cluster sushigraph --env-file <PATH_TO_ENV_FILE> up
laconic-so --stack sushiswap-subgraph deploy --cluster sushigraph up
# Note: Remove any existing volumes for the cluster for a fresh start
```