Fix postgres and use Lotus fixturenet in graph-node stack
This commit is contained in:
parent
b7a76aae57
commit
fda74e5c33
@ -1,6 +1,15 @@
|
|||||||
services:
|
services:
|
||||||
graph-node:
|
graph-node:
|
||||||
image: cerc/graph-node:local
|
image: cerc/graph-node:local
|
||||||
|
depends_on:
|
||||||
|
db:
|
||||||
|
condition: service_healthy
|
||||||
|
ipfs:
|
||||||
|
condition: service_healthy
|
||||||
|
lotus-node-1:
|
||||||
|
condition: service_healthy
|
||||||
|
extra_hosts:
|
||||||
|
- host.docker.internal:host-gateway
|
||||||
environment:
|
environment:
|
||||||
ipfs: ipfs:5001
|
ipfs: ipfs:5001
|
||||||
postgres_host: db
|
postgres_host: db
|
||||||
@ -8,6 +17,9 @@ 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: 'lotus-fixturenet:http://lotus-node-1:1234/rpc/v1'
|
||||||
|
GRAPH_LOG: info
|
||||||
ports:
|
ports:
|
||||||
- "8000"
|
- "8000"
|
||||||
- "8001"
|
- "8001"
|
||||||
@ -30,6 +42,12 @@ services:
|
|||||||
POSTGRES_USER: "graph-node"
|
POSTGRES_USER: "graph-node"
|
||||||
POSTGRES_DB: "graph-node"
|
POSTGRES_DB: "graph-node"
|
||||||
POSTGRES_PASSWORD: "password"
|
POSTGRES_PASSWORD: "password"
|
||||||
|
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
|
||||||
|
command:
|
||||||
|
[
|
||||||
|
"postgres",
|
||||||
|
"-cshared_preload_libraries=pg_stat_statements"
|
||||||
|
]
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "nc", "-v", "localhost", "5432"]
|
test: ["CMD", "nc", "-v", "localhost", "5432"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
@ -2,9 +2,11 @@ version: "1.0"
|
|||||||
name: fixturenet-graph-node
|
name: fixturenet-graph-node
|
||||||
description: "A graph-node fixturenet"
|
description: "A graph-node fixturenet"
|
||||||
repos:
|
repos:
|
||||||
|
- github.com/filecoin-project/lotus
|
||||||
- github.com/graphprotocol/graph-node
|
- github.com/graphprotocol/graph-node
|
||||||
containers:
|
containers:
|
||||||
|
- cerc/lotus
|
||||||
- cerc/graph-node
|
- cerc/graph-node
|
||||||
pods:
|
pods:
|
||||||
|
- fixturenet-lotus
|
||||||
- fixturenet-graph-node
|
- fixturenet-graph-node
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user