diff --git a/app/data/compose/docker-compose-fixturenet-graph-node.yml b/app/data/compose/docker-compose-fixturenet-graph-node.yml index 4f30961f..bde6c138 100644 --- a/app/data/compose/docker-compose-fixturenet-graph-node.yml +++ b/app/data/compose/docker-compose-fixturenet-graph-node.yml @@ -1,6 +1,15 @@ services: graph-node: 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: ipfs: ipfs:5001 postgres_host: db @@ -8,6 +17,9 @@ 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' + GRAPH_LOG: info ports: - "8000" - "8001" @@ -30,6 +42,12 @@ services: POSTGRES_USER: "graph-node" POSTGRES_DB: "graph-node" POSTGRES_PASSWORD: "password" + POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C" + command: + [ + "postgres", + "-cshared_preload_libraries=pg_stat_statements" + ] healthcheck: test: ["CMD", "nc", "-v", "localhost", "5432"] interval: 30s diff --git a/app/data/stacks/fixturenet-graph-node/stack.yml b/app/data/stacks/fixturenet-graph-node/stack.yml index 727cceb4..e7ab10f3 100644 --- a/app/data/stacks/fixturenet-graph-node/stack.yml +++ b/app/data/stacks/fixturenet-graph-node/stack.yml @@ -2,9 +2,11 @@ version: "1.0" name: fixturenet-graph-node description: "A graph-node fixturenet" repos: + - github.com/filecoin-project/lotus - github.com/graphprotocol/graph-node containers: + - cerc/lotus - cerc/graph-node pods: + - fixturenet-lotus - fixturenet-graph-node -