Take ETH RPC endpoint for graph-node from env

This commit is contained in:
Prathamesh Musale 2023-08-30 10:39:29 +05:30
parent 9b2e17b9e0
commit 0ea81c1f68
3 changed files with 13 additions and 4 deletions

View File

@ -6,6 +6,7 @@ services:
condition: service_healthy
ipfs:
condition: service_healthy
# Uncomment when running against fixturenet-lotus to wait for the Lotus node to come up
# lotus-node-1:
# condition: service_healthy
extra_hosts:
@ -17,9 +18,7 @@ services:
postgres_user: graph-node
postgres_pass: password
postgres_db: graph-node
# TODO: Get endpoint from env
# ethereum: 'lotus-fixturenet:http://lotus-node-1:1234/rpc/v1'
ethereum: 'filecoin:https://archive.lotus.vdb.to/rpc/v1'
ethereum: ${NETWORK}:${ETH_RPC_ENDPOINT}
GRAPH_LOG: debug
ETHEREUM_REORG_THRESHOLD: 3
ports:

View File

@ -32,3 +32,5 @@ lasso
reth
watcher-sushiswap
contract-sushiswap
fixturenet-graph-node
sushiswap-subgraph-v3

View File

@ -32,10 +32,18 @@ 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 up
laconic-so --stack sushiswap-subgraph deploy --cluster sushigraph --env-file <PATH_TO_ENV_FILE> up
# Note: Remove any existing volumes for the cluster for a fresh start
```