Take ETH RPC endpoint for graph-node from env
This commit is contained in:
parent
9b2e17b9e0
commit
0ea81c1f68
@ -6,6 +6,7 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
ipfs:
|
ipfs:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
# Uncomment when running against fixturenet-lotus to wait for the Lotus node to come up
|
||||||
# lotus-node-1:
|
# lotus-node-1:
|
||||||
# condition: service_healthy
|
# condition: service_healthy
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
@ -17,9 +18,7 @@ services:
|
|||||||
postgres_user: graph-node
|
postgres_user: graph-node
|
||||||
postgres_pass: password
|
postgres_pass: password
|
||||||
postgres_db: graph-node
|
postgres_db: graph-node
|
||||||
# TODO: Get endpoint from env
|
ethereum: ${NETWORK}:${ETH_RPC_ENDPOINT}
|
||||||
# ethereum: 'lotus-fixturenet:http://lotus-node-1:1234/rpc/v1'
|
|
||||||
ethereum: 'filecoin:https://archive.lotus.vdb.to/rpc/v1'
|
|
||||||
GRAPH_LOG: debug
|
GRAPH_LOG: debug
|
||||||
ETHEREUM_REORG_THRESHOLD: 3
|
ETHEREUM_REORG_THRESHOLD: 3
|
||||||
ports:
|
ports:
|
||||||
|
@ -32,3 +32,5 @@ lasso
|
|||||||
reth
|
reth
|
||||||
watcher-sushiswap
|
watcher-sushiswap
|
||||||
contract-sushiswap
|
contract-sushiswap
|
||||||
|
fixturenet-graph-node
|
||||||
|
sushiswap-subgraph-v3
|
||||||
|
@ -32,10 +32,18 @@ laconic-so --stack sushiswap-subgraph build-containers
|
|||||||
|
|
||||||
## Deploy
|
## 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:
|
Deploy the stack:
|
||||||
|
|
||||||
```bash
|
```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
|
# Note: Remove any existing volumes for the cluster for a fresh start
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user