Initial version (#494)

This commit is contained in:
David Boreham 2023-08-11 09:00:19 -06:00 committed by GitHub
parent 4c72acea96
commit fd78935fe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,45 @@
services:
graph-node:
image: cerc/graph-node:local
environment:
ipfs: ipfs:5001
postgres_host: db
postgres_port: 5432
postgres_user: graph-node
postgres_pass: password
postgres_db: graph-node
ports:
- "8000"
- "8001"
- "8020"
- "8030"
ipfs:
image: ipfs/kubo:master-2023-02-20-714a968
volumes:
- ipfs-import:/import
- ipfs-data:/data/ipfs
ports:
- "8080"
- "4001"
- "5001"
db:
image: postgres:14-alpine
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: "graph-node"
POSTGRES_DB: "graph-node"
POSTGRES_PASSWORD: "password"
healthcheck:
test: ["CMD", "nc", "-v", "localhost", "5432"]
interval: 30s
timeout: 10s
retries: 10
start_period: 3s
ports:
- "5432"
volumes:
ipfs-import:
ipfs-data:
db-data:

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Build a local version of the graphprotocol/graph-node image (among reasons: the upstream image is not built for arm)
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
docker build -t cerc/graph-node:local -f ${CERC_REPO_BASE_DIR}/graph-node/docker/Dockerfile ${build_command_args} ${CERC_REPO_BASE_DIR}/graph-node

View File

@ -47,3 +47,4 @@ cerc/reth
cerc/sushiswap-v3-core cerc/sushiswap-v3-core
cerc/sushiswap-v3-periphery cerc/sushiswap-v3-periphery
cerc/watcher-sushiswap cerc/watcher-sushiswap
cerc/graph-node

View File

@ -41,3 +41,4 @@ git.vdb.to/cerc-io/plugeth
git.vdb.to/cerc-io/plugeth-statediff git.vdb.to/cerc-io/plugeth-statediff
github.com/cerc-io/sushiswap-v3-core github.com/cerc-io/sushiswap-v3-core
github.com/cerc-io/sushiswap-v3-periphery github.com/cerc-io/sushiswap-v3-periphery
github.com/graphprotocol/graph-node

View File

@ -0,0 +1,3 @@
# Graph-Node Fixturenet
Experimental

View File

@ -0,0 +1,10 @@
version: "1.0"
name: fixturenet-graph-node
description: "A graph-node fixturenet"
repos:
- github.com/graphprotocol/graph-node
containers:
- cerc/graph-node
pods:
- fixturenet-graph-node