Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ARG TAG_NAME=unknown
ADD . /graph-node

RUN apt-get update \
&& apt-get install -y cmake protobuf-compiler && \
&& apt-get install -y cmake && \
cd /graph-node && \
RUSTFLAGS="-g" cargo build --release --package graph-node \
&& cp target/release/graph-node /usr/local/bin/graph-node \
Expand Down Expand Up @@ -85,6 +85,8 @@ ENV GRAPH_NODE_CONFIG ""
# Disable core dumps; this is useful for query nodes with large caches. Set
# this to anything to disable coredumps (via 'ulimit -c 0')
ENV disable_core_dumps ""
ENV GRAPH_ETHEREUM_GENESIS_BLOCK_NUMBER 25000000


# HTTP port
EXPOSE 8000
Expand Down
31 changes: 14 additions & 17 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,38 @@
version: '3'
version: "3"
services:
graph-node:
image: graphprotocol/graph-node
image: graphprotocol/graph-node:v0.28.2
ports:
- '8000:8000'
- '8001:8001'
- '8020:8020'
- '8030:8030'
- '8040:8040'
- "8000:8000"
- "8001:8001"
- "8020:8020"
- "8030:8030"
- "8040:8040"
depends_on:
- ipfs
- postgres
extra_hosts:
- host.docker.internal:host-gateway
- 172.18.0.1:host-gateway
environment:
postgres_host: postgres
postgres_user: graph-node
postgres_pass: let-me-in
postgres_db: graph-node
ipfs: 'ipfs:5001'
ethereum: 'mainnet:http://host.docker.internal:8545'
ipfs: "ipfs:5001"
ethereum: "mainnet:https://data-seed-prebsc-2-s3.binance.org:8545"
GRAPH_LOG: info
GRAPH_ETHEREUM_GENESIS_BLOCK_NUMBER: 25000000
ipfs:
image: ipfs/go-ipfs:v0.10.0
ports:
- '5001:5001'
- "5001:5001"
volumes:
- ./data/ipfs:/data/ipfs
postgres:
image: postgres
ports:
- '5432:5432'
command:
[
"postgres",
"-cshared_preload_libraries=pg_stat_statements"
]
- "5432:5432"
command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"]
environment:
POSTGRES_USER: graph-node
POSTGRES_PASSWORD: let-me-in
Expand Down