diff --git a/docker/Dockerfile b/docker/Dockerfile index 8c0a8e19919..0c5cad60ae7 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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 \ @@ -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 diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 742de12649d..a96a3e3dbc0 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -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